Hello everyone,
I think convert from Single or Double to Decimal is always fine since Decimal has broader precision and broader range. Why it is mentioned,
"Conversions from Single or Double to Decimal throw an OverflowException if the result of the conversion is not representable as a Decimal."
http://msdn.microsoft.com/en-us/library/system.decimal(VS.80).aspx
thanks in advance,
George
George GeorgePosted Jun 11, 2008, 9:25 PM
Great!
Question answered.
regards,
George
Mahesh ChandPosted Jun 11, 2008, 11:48 AM
If you convert this single value to decimal, you will get an overflow exception:
1.2345678E+30F