Key Pages: [ Rope Home Page | Basics (tutorial) | Language Reference | Download ]
Subtracts numbers.
Without AnchorBrackets, the "sub" action subtracts the topmost number on the stack from the previous one and pushes back the result; so "11 7 sub" means "11 - 7".
With AnchorBrackets it subtracts the specified numbers from the fist one in the list; so "sub(100 10 5)" means "100 - 10 - 5".
11 7 sub println # -- prints 4 add(100 10 5 20) println # -- prints 65
It is an error to attempt to subtract non-integer values.
Lowth.com: [ Home | Rope | P2PWall | LinWiz | cutter | Protector - Free Antivirus software | TapeIO ]