User Tools

Site Tools


crpl:docs:neg

This is an old revision of the document!


~~DISCUSSION~~ <- CRPL reference <- Math Commands

neg

ArgumentsResultNotation
One item on the stackThe negated value of the item n1 – n2

Description

Calculates the negative value of the item and pushes the result on the stack.

5 ->a
<-a <-a 2 mul sub <-a neg eq # Returns true

Examples

Converts 10 to -10
Converts 5 to -5
Converts -18 to 18
crpl/docs/neg.1396871140.txt.gz · Last modified: 2014/10/01 15:02 (external edit)