Number Bases & Scientific Notation
Notes Calculator accepts numbers written in scientific notation or in
hexadecimal, binary, and octal — and you can ask any result to render in
those formats with an in / as postfix.
Scientific notation literals
Section titled “Scientific notation literals”Use e (or E) to write a number in scientific notation. The exponent
sign is optional.
1.5e6 | 1,500,0002.5E-3 | 0.00255e+3 | 5,0001e10 | 10,000,000,000Scientific literals participate in arithmetic exactly like any other number:
1.5e6 + 1 | 1,500,0011.5e6 * 2 | 3,000,000Hex, binary, and octal literals
Section titled “Hex, binary, and octal literals”Prefix integer literals with 0x (hex), 0b (binary), or 0o
(octal). The prefix and digits are case-insensitive.
0xFF | 2550xDEADBEEF | 3,735,928,5590b1010 | 100b11111111 | 2550o17 | 150O377 | 255Mix bases freely in expressions:
0xFF + 1 | 2560b1010 + 5 | 15Display postfix: in / as
Section titled “Display postfix: in / as”Append in <format> or as <format> to a number or expression to
choose how the result is displayed. The underlying value is unchanged
— only the rendering is affected.
255 in hex | FF255 in binary | 11111111255 in octal | 3771234567 as scientific | 1.234567e61234567 as fixed | 1,234,567Both in and as are accepted, and as decimal is an alias for
as fixed.
The postfix attaches to the whole expression on its left, so parentheses can be used to format an arithmetic result:
(0xFF + 1) in hex | 100(0b1010 + 5) in binary | 1111in hex, in binary, and in octal require an integer value —
non-integers produce an error.
Global default format
Section titled “Global default format”The default format for numeric results is set in Settings → Number format:
- Auto — plain decimal for everyday values; switches to scientific for very large or very small numbers. (Default.)
- Scientific — every number renders in scientific notation.
- Fixed — every number renders as a plain decimal, never in scientific notation.
A per-line as scientific / as fixed postfix always overrides the
global setting.