Skip to content

Default variables

Efy edited this page Jan 23, 2023 · 1 revision

Default variables

This is a list of all default variables you can use in Reject.


e

e

Euler's number.

x = e^2

pi

pi

Pi.

x = pi^2

pretty_printing

pretty_printing

A modifyable variable that is used to determine in what way fractions will be printed. When this variable is manually set to true, fractions will be printed as numbers. When this is set to false, fractions will be printed in their default format.

pretty_printing = true

print(2) # prints 2

pretty_printing = false

print(2) # prints 2/1
Clone this wiki locally