Anonymous user
Approximate equality: Difference between revisions
m
→{{header|REXX}}: changed wording in the REXX section header.
(Added C#) |
m (→{{header|REXX}}: changed wording in the REXX section header.) |
||
Line 453:
=={{header|REXX}}==
Since the REXX language uses decimal digits (characters) for floating point numbers (and integers), it's just a matter of
<br>choosing the ''number'' of decimal digits for the precision to be used for arithmetic (in this case, fifteen decimal digits).
<lang rexx>/*REXX program mimics an "approximately equal to" for comparing floating point numbers*/
numeric digits 15 /*what other FP hardware normally uses.*/
|