SIGN: absolute of argument1 times sign of argument2 (F)
⇒Home
⇒Contents
⇒more on Programming
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
How your donation will be used, and how to get a HicEst key code in return
©2000-2010 Georg Petrich, HicEst Instant Prototype Computing. All rights reserved.
Impressum