Handbook
Glossary
neg? ( x -- ? )
Vocabulary
math
Inputs
x
an
object
Outputs
?
a
boolean
Word description
Pushes
t
if
x
is negative, else
f
Definition
IN:
math
GENERIC:
neg?
( x -- ? )
Methods
USING:
math
;
M:
float
neg?
fp-sign
;
inline
USING:
math
;
M:
ratio
neg?
numerator
neg?
;
inline
USING:
math
;
M:
rational
neg?
0
<
;
inline