Approximate equality: Difference between revisions

Content added Content deleted
Line 1,226: Line 1,226:
True 3.14 ≅ 3.14</pre>
True 3.14 ≅ 3.14</pre>


'''Bold text'''=={{header|Phix}}==
=={{header|Phix}}==
Traditionally I have always just used sprintf() to compare floating point atoms in phix.<br>
Traditionally I have always just used sprintf() to compare floating point atoms in phix.<br>
This task (imo) is trying to make a general-purpose routine out of code which is best tailored for each and every specific task.<br>
This task (imo) is trying to make a general-purpose routine out of code which is best tailored for each and every specific task.<br>
Line 1,301: Line 1,301:
3.1415926535897931 are approximately equal
3.1415926535897931 are approximately equal
</pre>
</pre>

=={{header|Processing}}==
=={{header|Processing}}==
<syntaxhighlight lang="Processing"></syntaxhighlight>
<syntaxhighlight lang="Processing"></syntaxhighlight>