Skip to content

Constants

Package: CONSTANTS_PACKAGE. Registered by createEngine(); for a slimmer engine, register it explicitly (see choosing packages).

Reach for a well-known constant by name instead of typing the digits. Where a constant has a unit, it arrives as a proper quantity, so it converts and multiplies like any other measurement.

The speed of light and the acceleration of gravity carry their units:

speed of light // 299,792,458.00 m/s
gravity // 9.81 m/s²

Because they are real quantities, they take part in the arithmetic. Gravity times a mass is a force, and it reads out in newtons through the named derived units:

gravity * 70 kg as N // 686.47 N
speed of light in km/h // 1,079,252,848.80 km/h

tau is a full turn, 2π, and the golden ratio (also phi) is the proportion that appears throughout art and nature. pi and e are already built in.

tau // 6.28
golden ratio // 1.62

These are precise scientific values. Avogadro’s number is large enough to show in full; the others are so small that the default display rounds them, so they are listed here with their proper values and units:

avogadro // 602,214,076,000,000,000,000,000
constantvalueunit
planck6.62607015 × 10⁻³⁴J·s
boltzmann1.380649 × 10⁻²³J/K
elementary charge1.602176634 × 10⁻¹⁹C
gas constant8.314462618J/(mol·K)
electron mass9.1093837015 × 10⁻³¹kg
proton mass1.67262192369 × 10⁻²⁷kg

electron mass and proton mass carry their kilograms, so they convert and combine like the other dimensioned constants.