Skip to content

geos.GEOS_printDouble ⇒ number

Print the shortest representation of a double. Non-zero absolute values that are <1e-4 and >=1e+17 are formatted using scientific notation, and other values are formatted with positional notation with precision used for the max digits after decimal point.

Kind: global property of geos
Returns: number - the length of the written string.

ParamTypeDescription
dnumberThe number to format.
precisionnumberThe desired precision.
resultStringPointerThe buffer to write the result to, with a suggested size 28.