# BASIC 256 - Language Documentation

en:numericconstants

## Numeric Constants

Numeric constants are any numeric characters, preceded by an optional minus sign to indicate negative numbers, and an optional decimal followed by more numeric characters to indicate floating point values. Examples of decimal numbers includes:

Decimal Numbers
10
-234.567
56.87
0.0123

Very large and small numbers may also be represented in scientific E notation (added in version 0.9.9.46). http://en.wikipedia.org/wiki/Scientific_notation

Scientific E Notation
E Notation | Decimal Number
--- | ---
2e0 | 2
3e2 | 300
1.234e10 | 12340000000
-5.3e4 | -53000
2e-1 | 0.2
5.12e-9 | 0.00000000512

Positive integer values may also be expressed in binary (base 2), octal (base 8), and hexadecimal (base 16). Precede binary values with 0b (0b1110 = 14), octal with 0o (0o177 = 127), and hexadecimal with 0x (0xff = 255).

en/numericconstants.txt · Last modified: 2013/02/09 21:41 by admin