<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>


DABS Search:

In Math Words in 32-bit library

Word Name: DABS
Type: Standard word
Data Stack Signature: d:x – abs(d:x)
Return Stack Signature: --
Availability: V1.2
Description:

Converts the double value on the stack to its absolute value.

Example:

-99. DABS D. (displays 99)
 99. DABS D. (displays 99)

Comment:

If the value is negative, it is converted to a positive value. If the value is positive the value remains unchanged.

See Also: ABS 

<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>