Please enable JavaScript to view this site.

Function that returns 0 or returns 1 with the sign, depending of the specified value.

Syntax

i32 sign (i32|real value)

value

Real or i32 variable from which to take the sign

Result

Returns:

Condition

Value

value < 0

-1

value = 0

0

value > 0

+1

Validity

Rule, Task

Note


 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC