mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 09:02:32 +00:00
15 lines
414 B
Zig
15 lines
414 B
Zig
const floating_point = 123.0E+77;
|
|
const another_float = 123.0;
|
|
const yet_another = 123.0e+77;
|
|
|
|
const hex_floating_point = 0x103.70p-5;
|
|
const another_hex_float = 0x103.70;
|
|
const yet_another_hex_float = 0x103.70P-5;
|
|
|
|
// underscores may be placed between two digits as a visual separator
|
|
const lightspeed = 299_792_458.000_000;
|
|
const nanosecond = 0.000_000_001;
|
|
const more_hex = 0x1234_5678.9ABC_CDEFp-10;
|
|
|
|
// syntax
|