← Back to team overview

dhis2-devs team mailing list archive

Re: [Branch ~dhis2-devs-core/dhis2/trunk] Rev 4611: added proper validation for real/natural numbers (including support for e-notation)

 

> This is not a problem, we store them as strings. There are 64 bit
> value types that can be used, and there are also libraries that would
> support any number of bits.

Yes, this is my point. I am sure (without knowing the details) that
there are restrictions on what would be a valid exponent and fraction
for a decimal representation of a real number.  If a number with 255
digits is stored as text, and whether the values are handled as a
double (I think that all values are treated as doubles regardless of
whether they are integers or not), this places different restrictions
on the number length which we should allow. So, if someone types in an
exponent with 200 numbers and 55 decimal points (which we could store
as text), would be be a valid double value?


Follow ups

References