Skip to main content
Oct 1, 2021 6:10 AM UTC
Solved

Schema data type for Numeric(10,2)

I would like to know which data type should I use (Float, Double, or Long) for a field that would be populated with Numeric(10,1) and another field with Numeric(10,2). Please help.


Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
DebTrAccepted solution
Level 6
Oct 1, 2021 6:28 AM UTC

Hi @accuser19 ,

The data type in schema shall be double.

 

Cheers,

Deb

3 replies

DebTrAccepted solution
Level 6
Oct 1, 2021 6:28 AM UTC

Hi @accuser19 ,

The data type in schema shall be double.

 

Cheers,

Deb

Translate
ACCUser19Author
Oct 1, 2021 9:11 AM UTC

Thanks @debtr !

So if the field has any number of decimal points, we always use the same double? Is there a way to limit the number of precision points when we set the attribute in schema so that DB size could be optimized? 

Translate
Feb 11, 2022 11:55 PM UTC

Yes, you should use Double,

There is no way to limit the number of precision digits.

Translate