Currency: Difference between revisions

Content added Content deleted
(Added Ada)
m (→‎{{header|Ada}}: Fixed typo)
Line 43: Line 43:


When using the Dollar_IO package to print each value, the constant is converted into a Dollar, then printed. All of
When using the Dollar_IO package to print each value, the constant is converted into a Dollar, then printed. All of
these arbitrary-precision arithmetic operations are done at compile-time, incurring no runtime cost.
the arbitrary-precision arithmetic operations are done at compile-time, incurring no runtime cost.
<lang ada>with Ada.Text_IO;
<lang ada>with Ada.Text_IO;