Skip to main content
Module

x/dallmo_util_math/app.ts>add_leading_zero

deno module, a collection of math util under dallmo-util
Latest
function add_leading_zero
import { add_leading_zero } from "https://deno.land/x/dallmo_util_math@v1.2.0/app.ts";

given a number, return a string with leading zero in specified output_length by char count

Parameters

input_num: number
  • the input number
output_length: number
  • the total length in char

Returns

string