Handling big FP numbers

John letsfindcourse at gmail.com
Sat Feb 9 07:19:59 UTC 2019


On Saturday, 9 February 2019 at 02:12:29 UTC, Murilo wrote:
> Why is it that in C when I attribute the number 
> 99999912343000007654329925.7865 to a double it prints 
> 99999912342999999470108672.0000 and in D it prints 
> 99999912342999999000000000.0000 ? Apparently both languages 
> cause a certain loss of precision(which is part of converting 
> the decimal system into the binary system) but why is it that 
> the results are different?

Do you want to learn D programming then check 
http://letsfindcourse.com/d-programming-courses Here you will 
find the best D programming tutorials recommended by programming 
community.


More information about the Digitalmars-d-learn mailing list