Std.Fmt.zeroPadded
1 declaration
fn
zeroPadded: &Std.Fmt.Spec -> Int -> StrThis is a callable function.
What it does
A number filled to its width with zeros between the sign and the digits.
Padding with a zero through filledWith would put it before the sign and
answer 00-42, which is not a number. This keeps the sign leading.
Read the signature
- The text after the name is the type checked by Pudu.
- Read arrows from left to right: inputs come first, and the final type is returned.
- & borrows a value for this call instead of moving or copying it.
