diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-27 16:49:38 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-27 16:49:38 -0400 |
| commit | baf990e65c62f42e45fe25ac385db9536d3f1788 (patch) | |
| tree | 7b89cecde1d6cd3b600b9295e0ad22a702cd1065 /api/integers.yaml | |
| parent | 1a8a8bc3e2ebd9c282db8131902f9bb5de8c03cb (diff) | |
Update stdlib to use `print` instead of `printf` in all cases. This
means bringing in fpconv to do float-to-string conversion and a few
updates to integer and number methods for string formatting.
Diffstat (limited to 'api/integers.yaml')
| -rw-r--r-- | api/integers.yaml | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/api/integers.yaml b/api/integers.yaml index 4e5ec46c..f927c75f 100644 --- a/api/integers.yaml +++ b/api/integers.yaml @@ -82,28 +82,6 @@ Int.factorial: >> (10).factorial() = 3628800 -Int.format: - short: text formatting - description: > - Formats an integer as a string with a specified number of digits. - return: - type: 'Text' - description: > - A string representation of the integer, padded to the specified number of digits. - args: - i: - type: 'Int' - description: > - The integer to be formatted. - digits: - type: 'Int' - default: '0' - description: > - The minimum number of digits to which the integer should be padded. - example: | - >> (42).format(digits=5) - = "00042" - Int.hex: short: convert to hexidecimal description: > |
