From baf990e65c62f42e45fe25ac385db9536d3f1788 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 27 Apr 2025 16:49:38 -0400 Subject: 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. --- api/integers.md | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'api/integers.md') diff --git a/api/integers.md b/api/integers.md index d79812df..0865e93f 100644 --- a/api/integers.md +++ b/api/integers.md @@ -89,28 +89,6 @@ n | `Int` | The integer to compute the factorial of. | - >> (10).factorial() = 3628800 -``` -## Int.format - -```tomo -Int.format : func(i: Int, digits: Int = 0 -> Text) -``` - -Formats an integer as a string with a specified number of digits. - -Argument | Type | Description | Default ----------|------|-------------|--------- -i | `Int` | The integer to be formatted. | - -digits | `Int` | The minimum number of digits to which the integer should be padded. | `0` - -**Return:** A string representation of the integer, padded to the specified number of digits. - - -**Example:** -```tomo ->> (42).format(digits=5) -= "00042" - ``` ## Int.hex -- cgit v1.2.3