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 /test/nums.tm | |
| 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 'test/nums.tm')
| -rw-r--r-- | test/nums.tm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/nums.tm b/test/nums.tm index 573b50ec..3653f18a 100644 --- a/test/nums.tm +++ b/test/nums.tm @@ -14,8 +14,8 @@ func main() >> Num.PI = 3.141592653589793 - >> Num.PI.format(precision=10) - = "3.1415926536" + >> Num.PI.with_precision(0.01) + = 3.14 >> Num.INF = Num.INF |
