This gets a random value between -5 and +5 and prints the value, the absolute and negative value in the console.
; Wheel, copyright (c) 2017 - present by Arno van der Vegt ; Distributed under an MIT license: https://arnovandervegt.github.io/wheel/license.txt "Math abs/neg example" "lib/modules/standard.whl" "lib/modules/math.whl" proc main() clearConsole() ; Get a random value between -5 and +5: number n = random(1, 99) / 10 - 5 printS("Number:") printN(n) ; Print the absolute value in the console: printS("Abs:") printN(abs(n)) ; Print the negative number in the console: printS("Neg:") printN(neg(n)) end