User Tools

Site Tools


4rpl:commands:sign

Index
Math

sign

SIGN(<-val)

Description

Returns the sign of the input value. Return value is 1 when f is positive or zero, -1 when f is negative.

Examples

trace(sign(42)) #prints '1'

Index

4rpl/commands/sign.txt · Last modified: 2025/02/14 14:57 by 127.0.0.1