3 ms·
≫ round(pi * 100000000000000000) = 314159265358979324 ≫ round(pi * 1000000000000000000) = 3141590000000000000 (similar comment by @btown down there abou
by avip 9y ago
≫ round(pi * 100000000000000000)
= 314159265358979324
≫ round(pi * 1000000000000000000)
= 3141590000000000000
(similar comment by @btown down there about e)
- sharkdp 9y agoThis is only how it is displayed, internal precision is always 30 digits. Floating point numbers are displayed with 6 significant digits Integers are displayed with all digits, unless there are more than ~20 digits, then it is displayed with exponential notation