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.
Param | Type | Description |
---|---|---|
d | number | The number to format. |
precision | number | The desired precision. |
result | StringPointer | The buffer to write the result to, with a suggested size 28. |