aspx_professional thread: Arithmetic operation resulted in an overflow.
yeah... it worked. thanks
-----Original Message-----
From: Chris [mailto:wrox@d...]
Sent: 25 March 2003 13:04
To: ASPX_Professional
Subject: [aspx_professional] RE: Arithmetic operation resulted in an
overflow.
Robert, the type(s) of the values you are multiplying can affect the type of
the result.
To avoid getting a result of a type other than decimal, you should convert
a, b and c to decimal type before performing the operation.
HTH
-----Original Message-----
From: Robert Sindall [mailto:rsindall@z...]
Sent: Tuesday, March 25, 2003 6:59 AM
To: ASPX_Professional
Subject: [aspx_professional] Arithmetic operation resulted in an overflow.
Arithmetic operation resulted in an overflow.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.OverflowException: Arithmetic operation resulted
in an overflow.
Line 412: Return (a * b * c)
its returning a decimal
& the three values are, 1000, 1000, 10000
why?