<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>The way decimal numbers are handled X3D is with SF/MFFloat and
SF/MFDouble. What gets tricky is when you get up to a level of
scale where that accuracy is no longer useful, then one goes into
LOD (Level of Detail).</p>
<p>I hope this helps.</p>
<p>Accuracy costs you in performance. Most scientific experiments
don't have that number of significant digits. The good thing is,
computer store numbers such that the significant digits is
maintained. It might be worth googling "How are decimal numbers
stored on a computer?" I do not know what C# does with numbers.
I speak in low level, computer hardware numbers that fit in
64-bits. Words too look up are mantissa and exponent.</p>
<p>This appears to be a good link:
<a class="moz-txt-link-freetext" href="https://en.wikipedia.org/wiki/Scientific_notation">https://en.wikipedia.org/wiki/Scientific_notation</a></p>
<p>Thanks!</p>
<p>John<br>
</p>
<div class="moz-cite-prefix">On 9/21/21 12:04 AM, Konstantin Smirnov
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAD1qDjRFFo4b2jRnf-4fG0zapmMM1iUVBdXe67dx_wR+kzcAbA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="auto">Hi
<div dir="auto">When adding double numbers in .cs script, must
we think about every digit accuracy, or it's approximate
numbers, so we can treat them as approximate with e-7, or so?
15? </div>
<div dir="auto"><br>
</div>
<div dir="auto">Can we do calc and round afterwards? </div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
x3d-public mailing list
<a class="moz-txt-link-abbreviated" href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a>
<a class="moz-txt-link-freetext" href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a>
</pre>
</blockquote>
</body>
</html>