Numeric separator syntax: Difference between revisions

Added Algol 68
(Added Sidef)
(Added Algol 68)
Line 7:
 
<br><br>
 
=={{header|ALGOL 68}}==
In Algol 68, spaces are not significant in identifiers or numeric literals. This allows spaces to be used as numeric separators.
<br>Single or multiple spaces can be used as desired, it is not necessary to group the digits into blocks of three.
<lang algol68>BEGIN
INT a = 1 234 567;
REAL b = 3 . 1 4159 26 5 359;
print( ( whole( a, 0 ), " ", fixed( b, - 14, 11 ), newline ) )
END
</lang>
{{out}}
<pre>
1234567 3.14159265359
</pre>
 
=={{header|Factor}}==
3,022

edits