Formatted numeric output: Difference between revisions

Content added Content deleted
(→‎{{header|BASIC}}: Added ANSI BASIC.)
(PascalABC.NET)
Line 1,883: Line 1,883:
write(n:0:fractionalPlaces);
write(n:0:fractionalPlaces);
end;</syntaxhighlight>
end;</syntaxhighlight>

=={{header|PascalABC.NET}}==
<syntaxhighlight lang="delphi">
##
var Pi := 3.1415926536;
Println($'{Pi,8:f2}');
Println($'{Pi,-8:f3}!');
</syntaxhighlight>
{{out}}
<pre>
3.14
3.142 !
</pre>


=={{header|Perl}}==
=={{header|Perl}}==