Literals/Integer: Difference between revisions
Content added Content deleted
mNo edit summary |
(Added Neko) |
||
Line 1,020: | Line 1,020: | ||
IO.Put("\n"); |
IO.Put("\n"); |
||
END Literals.</lang> |
END Literals.</lang> |
||
=={{header|Neko}}== |
|||
Neko supports base 10 and 0x prefixed base 16 integer literals. Leading zero is NOT octal. |
|||
<lang ActionScript>/** |
|||
Integer literals, in Neko |
|||
Base 10 and Base 16, no leading zero octal in Neko |
|||
*/ |
|||
var num = 2730 |
|||
if (num == 02730) $print("base 10, even with leading zero\n") |
|||
if (num == 0xAAA) $print("base 16, with leading 0x or 0X\n")</lang> |
|||
=={{header|Nemerle}}== |
=={{header|Nemerle}}== |