1 C-style numeric integer and float literals are understood, as well 2 as the special keywords "Infinity" and "NaN" to denote the IEEE 754 3 floating point values. 4 5 Numeric values are either stored as signed 64 bit integers or signed 6 doubles internally. 7 8 -- Expect stdout -- 9 Integers literals: 123, 127, 2748, 57082 10 Float literals: 10, 10.3, 1.23456e-65, 16.0625 11 Octal literals: 63, 118 12 Binary literals: 7, 11 13 Special values: Infinity, Infinity, NaN, NaN 14 Minimum values: -9223372036854775808, -1.7976931348623e+308 15 Maximum values: 9223372036854775807, 1.7976931348623e+308 16 Minimum truncation: -9223372036854775808, -Infinity 17 Maximum truncation: 18446744073709551615, Infinity 18 -- End -- 19 20 -- Testcase -- 21 Integers literals: {{ 123 }}, {{ 0177 }}, {{ 0xabc }}, {{ 0xDEFA }} 22 Float literals: {{ 10. }}, {{ 10.3 }}, {{ 123.456e-67 }}, {{ 0x10.1 }} 23 Octal literals: {{ 0o77 }}, {{ 0O166 }} 24 Binary literals: {{ 0b111 }}, {{ 0B1011 }} 25 Special values: {{ Infinity }}, {{ 1 / 0 }}, {{ NaN }}, {{ "x" / 1 }} 26 Minimum values: {{ -9223372036854775808 }}, {{ -1.7976931348623158e+308 }} 27 Maximum values: {{ 9223372036854775807 }}, {{ 1.7976931348623158e+308 }} 28 Minimum truncation: {{ -100000000000000000000 }}, {{ -1.0e309 }} 29 Maximum truncation: {{ 100000000000000000000 }}, {{ 1.0e309 }} 30 -- End --
This page was automatically generated by LXR 0.3.1. • OpenWrt