Hi, I have some big values to save and process like -10,00,00,00,30,29,601 (+ve as well as -Ve) and -118.1966670 (with high decimal precision) which data type I should use to process such data?

Hi, I have some big values to save and process like -10,00,00,00,30,29,601 (+ve as well as -Ve) and -118.1966670 (with high decimal precision) which data type I should use to process such data?

Hi

For large values, you should use the Int64 data type. The Int64 data type can store values up to 9,223,372,036,854,775,807. This is more than enough to store the values you mentioned.

For values with high decimal precision, you should use the Double data type. The Double data type can store values up to 15 decimal places. This is enough to store the value -118.1966670.

If you are not sure which data type to use, you can always use the String data type. The String data type can store any type of data, including numbers, text, and dates.

Cheers @Tech

1 Like

Thanks for your reply. Actually, I am getting this value from Teradata, where it is mentioned as BigInt datatype. So I imported System.Numerics (mentioned in some other forum post) namespace and using Bigint.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.