I suspect in many instances it&#x27;s down to the method doing the printing being &quot;helpful&quot;. The page documents this behaviour with Python. I&#x27;ve never specifically used C#, but it seems to default to the &quot;G&quot; format[1], the alternative &quot;R&quot; format shows the expected result. You can play around with it here: <a href="http:&#x2F;&#x2F;ideone.com&#x2F;hxD96J" rel="nofollow">http:&#x2F;&#x2F;ideone.com&#x2F;hxD96J</a><p>Printing out is kind of a misleading check here, maybe a better idea would be to test equality with the constant 0.3. Of course the site is just a neat illustration and not a technical whitepaper.<p>[1] <a href="https:&#x2F;&#x2F;msdn.microsoft.com&#x2F;en-us&#x2F;library&#x2F;dwhawy9k(v=vs.110).aspx" rel="nofollow">https:&#x2F;&#x2F;msdn.microsoft.com&#x2F;en-us&#x2F;library&#x2F;dwhawy9k(v=vs.110)....</a> and <a href="https:&#x2F;&#x2F;msdn.microsoft.com&#x2F;en-us&#x2F;library&#x2F;3hfd35ad(v=vs.110).aspx" rel="nofollow">https:&#x2F;&#x2F;msdn.microsoft.com&#x2F;en-us&#x2F;library&#x2F;3hfd35ad(v=vs.110)....</a>