Quantcast
Channel: User Oswald - Stack Overflow
Viewing all articles
Browse latest Browse all 36

Comment by Oswald on PHP show only significant (non-zero) decimals

$
0
0
@fpierrat The actual value is most likely an irrational number that cannot be displayed. Instead of displaying the actual value, a rational number is displayed that is close to the real value. This is called /rounding/. To let the reader know at which decimal place rounding occurred, trailing zeroes are displayed even if their omission would not alter the values of the displayed number.

Viewing all articles
Browse latest Browse all 36

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>