Methods

StrΒΆ

Str(n:Int, target_width:Int)

Convert a number to a string and pad it
Source: stdlib.ngs:2412

target_width

Positive pads on left, negative pads on right

Example

Str(10,  4)  # '  10'
Str(10, -4)  # '10  '