Numeric separator syntax: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 22: | Line 22: | ||
=={{Header|Ada}}== |
=={{Header|Ada}}== |
||
The Ada language uses the underscore '_' as a digit separator. |
The Ada language uses the underscore '_' as a digit separator. The underscore separator must be between digits. |
||
<lang Ada>with Ada.Text_IO; use Ada.Text_IO; |
<lang Ada>with Ada.Text_IO; use Ada.Text_IO; |
||
with Ada.Float_Text_IO; use Ada.Float_Text_IO; |
with Ada.Float_Text_IO; use Ada.Float_Text_IO; |
||
Line 28: | Line 28: | ||
procedure Main is |
procedure Main is |
||
type u64 is mod 2**64; |
type u64 is mod 2**64; |
||
pi : constant Float := |
pi : constant Float := |
||
3.14159_26535_89793_23846_26433_83279_50288_41971_69399_37511; |
|||
Trillion : u64 := 1_000_000_000_000; |
Trillion : u64 := 1_000_000_000_000; |
||
begin |
begin |
||
Line 41: | Line 42: | ||
Trillion : 1000000000000 |
Trillion : 1000000000000 |
||
</pre> |
</pre> |
||
=={{header|ALGOL 68}}== |
=={{header|ALGOL 68}}== |