Question whether a number is negative -- less than zero.

number:negative?(FLOAT $number) : BOOL

number:negative?(-2.2)      
#=> TRUE

number:negative?(-2398)      
#=> TRUE

number:negative?(-0.01) 
#=> TRUE

number:negative?(0)
#=> FALSE

number:negative?(-0)
#=> FALSE

number:negative?(10)
#=> FALSE

number:negative?("-10")
#=> TRUE

Copyright ©2013-2022 SunSed®. All rights reserved.