PostGIS
3.3.9dev-r@@SVN_REVISION@@
◆
bits_for_precision()
static uint8_t bits_for_precision
(
int32_t
significant_digits
)
static
Definition at line
2532
of file
lwgeom.c
.
2533
{
2534
int32_t bits_needed = ceil(significant_digits / log10(2));
2535
2536
if
(bits_needed > 52)
2537
{
2538
return
52;
2539
}
2540
else
if
(bits_needed < 1)
2541
{
2542
return
1;
2543
}
2544
2545
return
bits_needed;
2546
}
Referenced by
trim_preserve_decimal_digits()
.
Here is the caller graph for this function:
liblwgeom
lwgeom.c
Generated by
1.9.1