P
Pieter
Hi,
I have a variable (m_sngPrixNetUnitaire) which is of type Single.
When I want to write the value to my SQL SERVER 2000, I put this value in my
DAL (MyDal.PrixNetUnitaire), which is of datatype SqlDecimal.
But during the conversion the value changes, and MyDal.PrixNetUnitaire
=4.4749999999999996D...
Does anybody has any idea why this happens? Is this normal? Or is it a bug?
What should I do to have the exact value (4.475)?
Thanks a lot in advance,
Pieter
I have a variable (m_sngPrixNetUnitaire) which is of type Single.
When I want to write the value to my SQL SERVER 2000, I put this value in my
DAL (MyDal.PrixNetUnitaire), which is of datatype SqlDecimal.
But during the conversion the value changes, and MyDal.PrixNetUnitaire
=4.4749999999999996D...
Does anybody has any idea why this happens? Is this normal? Or is it a bug?
What should I do to have the exact value (4.475)?
Thanks a lot in advance,
Pieter