George George

George George

  • NA
  • 778
  • 0

convert from Single to Decimal

Jun 11 2008 8:15 AM

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


Answers (2)