fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 355 Absolute value
Idiom # 355 Absolute value
See
programming-idioms.org
:
Code
Code input
y := n.abs
What are effects?
Runnable Example
Code input
ex355 is n := -42 y := n.abs say "|$n| = $y"
What are effects?
last changed: 2025-07-10
next: Idiom # 356 Parse list of integers