User Tools

Site Tools


crpl:docs:neg

<- CRPL reference <- Math Commands

neg

neg

Description

Calculates the negative value of the item and pushes the result on the stack. Is the same as multiplying by -1.

Examples

ClearTraceLog
ShowTraceLog
10 neg Trace #-10
-5 neg Trace #5
1.8 neg trace #-1.8
  5 ->a
  <-a <-a 2 mul sub <-a neg eq # Returns true  
crpl/docs/neg.txt · Last modified: 2022/07/04 08:47 by Karsten75