fixedWidthNumber
lib.fixedWidthNumber
Docs pulled from | This Revision | 18 minutes ago
Nixpkgs manual
Format a number adding leading zeroes up to fixed width.
Inputs
width- 1. Function argument
n- 2. Function argument
Type
fixedWidthNumber :: Int -> Int -> String
Examples
Noogle detected
Implementation
The following is the current implementation of this function.
fixedWidthNumber = width: n: fixedWidthString width "0" (toString n);