Re: Decimal128 scale limits

2020-09-03 Thread Micah Kornfield
elp you? > > > A 128-bit fixed-length Decimal value in the ANSI SQL Numeric semantics, > > representing unscaledValue / 10**scale where scale is 0 or positive. > > > > Regards, > > Kazuaki Ishizaki > > > > > > > > From: Jacek Pliszka > > T

Re: Decimal128 scale limits

2020-07-02 Thread Wes McKinney
positive. > > Regards, > Kazuaki Ishizaki > > > > From: Jacek Pliszka > To: dev@arrow.apache.org > Date: 2020/07/02 00:08 > Subject:[EXTERNAL] Re: Decimal128 scale limits > > > > Hi! > > I am aware about at least 2 different decimal128 things:

RE: Decimal128 scale limits

2020-07-01 Thread Kazuaki Ishizaki
ect:[EXTERNAL] Re: Decimal128 scale limits Hi! I am aware about at least 2 different decimal128 things: a) the one we have - where we use 128 bits to store integer which is later shifted by scale - 38 is number of digits of significand i.e. digits fitting in 128 bits (2**128/10**38) - IMHO it

Re: Decimal128 scale limits

2020-07-01 Thread Jacek Pliszka
Hi! I am aware about at least 2 different decimal128 things: a) the one we have - where we use 128 bits to store integer which is later shifted by scale - 38 is number of digits of significand i.e. digits fitting in 128 bits (2**128/10**38) - IMHO it is completely unrelated to scale which we sto

Decimal128 scale limits

2020-07-01 Thread Antoine Pitrou
Hello, Are there limits to the value of the scale for either decimal128 or decimal? Can it be negative? Can it be greater than 38 (and/or lower than -38)? It's not clear from looking either at the spec or at the C++ code... Regards Antoine.