padLeadingZeros
padLeadingZeros(int: Integer): StringUtf8;
The padLeadingZeros method of the StringUtf8 primitive type returns a string of the length specified in the int parameter, consisting of the receiving string padded with leading zeros.
The following example shows the use of the padLeadingZeros method.
vars str8 : StringUtf8; begin str8 := @'123.45'; write str8.padLeadingZeros(10); // Outputs '0000123.45' end;