Pancode - Commands - Constants

These commands simply push a single value onto the stack, generally some significant mathematical constant. This page only describes commands which push constants. Any constants which are treated specially by the parser, including numerical literals, string literals, and infinity, are described on Syntax.

Pi (π)

Pushes the mathematical constant pi onto the stack.

Tau (τ)

Pushes the mathematical constant tau (two times pi) onto the stack.

E (e)

Pushes the mathematical constant e onto the stack.

1 / 4 (¼)

Pushes the fractional value 1 / 4 onto the stack.

1 / 2 (½)

Pushes the fractional value 1 / 2 onto the stack.

3 / 4 (¾)

Pushes the fractional value 3 / 4 onto the stack.

1 / 7 ()

Pushes the fractional value 1 / 7 onto the stack.

1 / 9 ()

Pushes the fractional value 1 / 9 onto the stack.

1 / 10 ()

Pushes the fractional value 1 / 10 onto the stack.

1 / 3 ()

Pushes the fractional value 1 / 3 onto the stack.

2 / 3 ()

Pushes the fractional value 2 / 3 onto the stack.

1 / 5 ()

Pushes the fractional value 1 / 5 onto the stack.

2 / 5 ()

Pushes the fractional value 2 / 5 onto the stack.

3 / 5 ()

Pushes the fractional value 3 / 5 onto the stack.

4 / 5 ()

Pushes the fractional value 4 / 5 onto the stack.

1 / 6 ()

Pushes the fractional value 1 / 6 onto the stack.

5 / 6 ()

Pushes the fractional value 5 / 6 onto the stack.

1 / 8 ()

Pushes the fractional value 1 / 8 onto the stack.

3 / 8 ()

Pushes the fractional value 3 / 8 onto the stack.

5 / 8 ()

Pushes the fractional value 5 / 8 onto the stack.

7 / 8 ()

Pushes the fractional value 7 / 8 onto the stack.

0 / 3 ()

Pushes the fractional value 0 / 3 onto the stack.

Documentation Index