The real value is 99999999999980000000000001. So it's approximately right. Not much of a difference between 0.999999999999 and 1.0.
But anyway, the reason is that computers' builtin floating point logic is not 100% accurate. It can only hold a certain amount of precision. To have 100% accuracy you have to use software methods which are slower.
its to create a long ip out of a ipv6 so one ip is next to an other there isn't that mutch difference either so .. i expect a calculation to be right .. not somewhere close to ...
Dude, please don't do ipv6 calculations in floating point. Use integers. Most computers don't have 128 bit builtin integers, so it's kind of unavoidable to split it up.
dude i was planing on doing that the floating point was just to see how i could resolve a sientific notation to a normal figur .. but that doesn't work so .. i found an other way .. dw but tnx for the tip just have to figur out some way to reformat that funny looking format some of it makes sence some of it doesn't .. ill find out sooner or later i always do