aboutsummaryrefslogtreecommitdiff
path: root/man/man3/tomo-Int.abs.3
diff options
context:
space:
mode:
Diffstat (limited to 'man/man3/tomo-Int.abs.3')
-rw-r--r--man/man3/tomo-Int.abs.334
1 files changed, 34 insertions, 0 deletions
diff --git a/man/man3/tomo-Int.abs.3 b/man/man3/tomo-Int.abs.3
new file mode 100644
index 00000000..7ef53d0b
--- /dev/null
+++ b/man/man3/tomo-Int.abs.3
@@ -0,0 +1,34 @@
+'\" t
+.\" Copyright (c) 2025 Bruce Hill
+.\" All rights reserved.
+.\"
+.TH Int.abs 3 2025-04-19T14:30:40.360304 "Tomo man-pages"
+.SH NAME
+Int.abs \- Calculates the absolute value of an integer.
+
+.SH LIBRARY
+Tomo Standard Library
+.SH SYNOPSIS
+.nf
+.BI "Int.abs : func(x: Int -> Int)"
+.fi
+
+.SH DESCRIPTION
+Calculates the absolute value of an integer.
+
+
+.TS
+allbox;
+lb lb lbx lb
+l l l l.
+Name Type Description Default
+x Int The integer whose absolute value is to be calculated. -
+.TE
+.SH RETURN
+The absolute value of `x`.
+
+.SH EXAMPLES
+.EX
+>> (-10).abs()
+= 10
+.EE