Approximate equality: Difference between revisions
Content added Content deleted
(add →Pascal) |
m (→Pascal: fix some formatting mistakes) |
||
Line 1,131: | Line 1,131: | ||
3.141592653589793115997963 ≅ 3.141592653589793115997963 |
3.141592653589793115997963 ≅ 3.141592653589793115997963 |
||
The shown output was generated by a <tt>program</tt> compiled by the GPC (GNU Pascal Compiler). |
The shown output was generated by a <tt>program</tt> compiled by the GPC (GNU Pascal Compiler). |
||
Due to technical limitations it was not possible to reproduce 100.01 |
Due to technical limitations it was not possible to reproduce 100.01 ≆ 100.011 as requested by the task specification. |
||
The computer had |
The computer had an IEEE-754-compliant FPU with 80-bit precision. |
||
Note that Pascal’s <tt>write</tt>/<tt>writeLn</tt>/<tt>writeStr</tt> routines (the last one is only available in Extended Pascal) produce |
Note that Pascal’s <tt>write</tt>/<tt>writeLn</tt>/<tt>writeStr</tt> routines (the last one is only available in Extended Pascal) produce ''rounded'' representations. |
||
=={{header|Perl}}== |
=={{header|Perl}}== |