Skip to main content
Module

x/numwizard/src/add_zero.ts>default

A bunch of functions to convert numbers into strings of required format.
Latest
function default
import { default } from "https://deno.land/x/numwizard@v1.2.1/src/add_zero.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