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
Mahesh ChandRank #1 · 393K pointsPosted Jun 11, 2008, 7:48 AM EDT
If you convert this single value to decimal, you will get an overflow exception:
1.2345678E+30F
George GeorgeRank #2,261 · 618 pointsPosted Jun 11, 2008, 5:25 PM EDT
Great!
Question answered.
regards,
George