Although real numbers have no limits in size or precision, in computing there are limitations.
Simplest type of numbers known to computers are integers. RavenDB fully supports integers of
type between [-2,147,483,648 to 2,147,483,647].
Simplest type of fraction known to computers are floating point numbers. RavenDB fully supports double precision floating point number with approximate range of 15-16 digits between [±5.0 × 10^(−324) to ±1.7 × 10^308].
RavenDB supports storing numbers in the range of the
In order to better understand the terms precision and range, please observe the next diagram, comparing range and precision of 3 common .NET types:
Numbers bigger then double precision max number will be rejected by server. Mechanisms supporting only double precision numbers will by default truncate the number to a
double, loosing precision.
Please follow the next paragraphs to learn more about those limitaions and possible work arounds.
Important edge cases
Please note that
long's max and min numbers are beyond the accuracy range of
double, therefore, it should be used with care, and it's recommended to avoid using it for global maximum or minimum notations.