Skip to main content
Module

x/numwizard/mod.ts>AddZero

A bunch of functions to convert numbers into strings of required format.
Latest
function AddZero
import { AddZero } from "https://deno.land/x/numwizard@v1.2.1/mod.ts";

Add zeros to the beginning of a number till it reaches a certain digit count.

Parameters

num: number
  • Number to add zeros to.
optional
digits = [UNSUPPORTED]
  • Number of digits the number has to reach.

Returns

string