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 store separately b) IEEE 754 one which has exponent from -6143 to +6144 BR, Jacek śr., 1 lip 2020 o 16:16 Antoine Pitrou <anto...@python.org> napisał(a): > > > 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.