User Tools

Site Tools


4rpl:commands:sign0

This is an old revision of the document!


Index

sign0

SIGN0(<-val)

Description

Returns the sign of the input value. Return value is 1 when f is positive, -1 when f is negative, and 0 if the input value is 0.

Examples

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

Index

4rpl/commands/sign0.1610121708.txt.gz · Last modified: 2025/02/14 14:56 (external edit)