https://wiki.dlang.org/?title=User:Berni44/RealProblems&feed=atom&action=historyUser:Berni44/RealProblems - Revision history2024-03-28T14:51:36ZRevision history for this page on the wikiMediaWiki 1.31.2https://wiki.dlang.org/?title=User:Berni44/RealProblems&diff=9970&oldid=prevBerni44: Created page with "==Real Problems== Most people agree, that floating point numbers are weird. At least somewhat. D also features these numbers. It has got three floating point types: <code>fl..."2021-03-08T16:46:05Z<p>Created page with "==Real Problems== Most people agree, that floating point numbers are weird. At least somewhat. D also features these numbers. It has got three floating point types: <code>fl..."</p>
<p><b>New page</b></p><div>==Real Problems==<br />
<br />
Most people agree, that floating point numbers are weird. At least somewhat.<br />
<br />
D also features these numbers. It has got three floating point types: <code>float</code> (32 bit) , <code>double</code> (64 bit) and <code>real</code> (largest floating point size available). While the first two are well known, <code>real</code> may differ on different computers (and maybe even with different compilers, but I don't know that for sure).<br />
<br />
This in itself is not a problem. If your code needs to produce identical results on different computers, you just stick to <code>double</code> or <code>float</code>. If the code only targets one computer, you may use <code>real</code> for greater precision.<br />
<br />
Unfortunately D has got another feature...</div>Berni44