Rebol3 Code Examplex
Sign of an integer (signum)
Rebol [
title: "Rosetta code: Sign of an integer (signum)"
file: %Sign_of_an_integer_%28signum%29.r3
url: https://rosettacode.org/wiki/Sign_of_an_integer_%28signum%29
]
print sign? -10
print sign? 42
print sign? 0Output:
-1
1
0