In an application I am supporting, I am debugging an issue where an "Arithmetic operation caused an overflow" exception is occurring on an occasional basis when a value that is being returned from a database is presented in a report. I am confident that the value being presented is coming from the database as a C# decimal.
However, in our report, the display field has the Number type. I read here, under conversion considerations that it is possible to get Overflow exceptions when cast to a smaller type that cannot handle the size of the value returned, such as a float or a double.
Google has failed me on this one, sadly - searching for 'Crystal Reports Number datatype size' yielded nebulous results that don't tell me anything about the Crystal Reports number datatype.
So, I pose the question here - how does the Crystal Reports Number relate to C# numeric types? Or do they relate?