User Tools

Site Tools


crpl:docs:neg

This is an old revision of the document!


<- 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.

Examples

  5 ->a
  <-a <-a 2 mul sub <-a neg eq # Returns true  
ClearTraceLog
ShowTraceLog
10 neg Trace #-10
-5 neg Trace #5
1.8 neg trace #-1.8
crpl/docs/neg.1427758155.txt.gz · Last modified: 2025/02/14 14:56 (external edit)