aboutsummaryrefslogtreecommitdiff
path: root/man/man3/tomo-Num.with_precision.3
diff options
context:
space:
mode:
Diffstat (limited to 'man/man3/tomo-Num.with_precision.3')
-rw-r--r--man/man3/tomo-Num.with_precision.311
1 files changed, 4 insertions, 7 deletions
diff --git a/man/man3/tomo-Num.with_precision.3 b/man/man3/tomo-Num.with_precision.3
index 6dabcc0c..66b5c0e9 100644
--- a/man/man3/tomo-Num.with_precision.3
+++ b/man/man3/tomo-Num.with_precision.3
@@ -2,7 +2,7 @@
.\" Copyright (c) 2025 Bruce Hill
.\" All rights reserved.
.\"
-.TH Num.with_precision 3 2025-04-30 "Tomo man-pages"
+.TH Num.with_precision 3 2025-09-21 "Tomo man-pages"
.SH NAME
Num.with_precision \- round to a given precision
.SH LIBRARY
@@ -30,10 +30,7 @@ The number, rounded to the given precision level.
.SH EXAMPLES
.EX
->> (0.1234567).with_precision(0.01)
-= 0.12
->> (123456.).with_precision(100)
-= 123500
->> (1234567.).with_precision(5)
-= 1234565
+assert (0.1234567).with_precision(0.01) == 0.12
+assert (123456.).with_precision(100) == 123500
+assert (1234567.).with_precision(5) == 1234565
.EE