Requirements
A StackTalk installation, see here
Whole numbers
Start a repl:
sk -i
Do some arithmetic, using reverse polish notation.
1 2 +
The Stack is: [
.{ .int = 3 }
]
4 *
The Stack is: [
.{ .int = 12 }
]
Remove the top of the stack
#
The Stack is: [
]
Floating point numbers
Do arithmetic to floating point numbers.
1.1 2.4 +
The Stack is: [
.{ .float = 3.5 }
]
1.5 div
The Stack is: [
.{ .float = 2.3333333333333335 }
]