T
Th.Krebs
Hello all,
we just got a little problem with the correctness of VB.Net.
What would u expect as the result of
4.35 * 100.0
435.0 u think ?
well, VB.Net tells us, that the result of this
calculation will be:
4.35*100.0 434.99999999999994 Double
Who is right here, and how can we avoid these kind of miscalculations.
Using Decimal instead of Double?
Thanks for reading and answering this post.
Thomas
we just got a little problem with the correctness of VB.Net.
What would u expect as the result of
4.35 * 100.0
435.0 u think ?
well, VB.Net tells us, that the result of this
calculation will be:
4.35*100.0 434.99999999999994 Double
Who is right here, and how can we avoid these kind of miscalculations.
Using Decimal instead of Double?
Thanks for reading and answering this post.
Thomas