This is part of the HicEst documentation
SIGN(x,y): Absolute of x Times Sign of y
The result is ABS(x) if y ≥ 0 and -ABS(x) if y < 0.
⇾Home
⇾Contents
⇾more Programming
⇾ Examples
result = SIGN ( argument1, argument2)
argument1 and argument2 are both numeric scalars
result is
ABS
(argument1) if argument2 ≥ 0 and -
ABS
(argument1) if argument2 < 0
x = SIGN( 1.111, 2.222 )
! x = 1.111
x = SIGN( -1.111, 2.222 )
! x = 1.111
x = SIGN( 1.111, -2.222 )
! x = -1.111
x = SIGN( -1.111, -2.222 )
! x = -1.111
⇾
Support HicEst
⇾
Impressum
©2000-2019 Georg Petrich, HicEst Instant Prototype Computing. All rights reserved.