query
On this page

floatToString

lib.strings.floatToString

Docs pulled from | This Revision | about 1 hour ago


Convert a float to a string, but emit a warning when precision is lost during the conversion

Inputs

float

1. Function argument

Examples

floatToString usage example

floatToString 0.000001
=> "0.000001"
floatToString 0.0000001
=> trace: warning: Imprecise conversion from float to string 0.000000
   "0.000000"