Approximate equality: Difference between revisions

Content added Content deleted
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&nbsp;≆nbsp;100.011 as requested by the task specification.
Due to technical limitations it was not possible to reproduce 100.01&nbsp;≆&nbsp;100.011 as requested by the task specification.
The computer had a IEEE-754-compliant FPU with 80-bit precision.
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 _rounded_ representations.
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}}==