gesus
gesus

Reputation: 471

Overflow in DataTable when the float data in a column has too many digits after comma

I'm getting data from Oracle DB to a DataTable via OracleDataAdapter. But when the Oracle Number column in a row has too many digits in DB i get a System.OverflowException: Arithmetic operation resulted in an overflow exception. How can i handle this situation?

Regards.

Upvotes: 0

Views: 475

Answers (1)

David Jashi
David Jashi

Reputation: 4511

Number type in Oracle may have up to 38 decimal digits. If you have any means of control on the target data structure, you should use float for this field.

By the way, you haven't mentioned, what programming language you are using.

Upvotes: 1

Related Questions