Constants

Constants

8 names

The compile-time literals the compiler inlines, and discard.

The signature and the sentence under each name are the compiler's own text at commit 26de7be8.

discard
Discards the current fragment, so nothing is written for it.
PI
The mathematical constant π, inlined as a compile-time f32 literal (approximately 3.14159).
TAU
The mathematical constant 2π (tau), inlined as a compile-time f32 literal (approximately 6.28318).
E
The mathematical constant e, inlined as a compile-time f32 literal (approximately 2.71828).
LN2
The natural logarithm of 2, inlined as a compile-time f32 literal (approximately 0.69315).
LN10
The natural logarithm of 10, inlined as a compile-time f32 literal (approximately 2.30259).
LOG2E
The base-2 logarithm of e, inlined as a compile-time f32 literal (approximately 1.44270).
LOG10E
The base-10 logarithm of e, inlined as a compile-time f32 literal (approximately 0.43429).

Every entry on these pages is read from the compiler at the pinned commit, and none of it is typed here.

Edit this page Report a problem