decimal package:influxdb

Format a decimal number.
>>> F.formatQuery ("SELECT * FROM series WHERE time < now() - "%F.decimal%"h") 1
"SELECT * FROM series WHERE time < now() - 1h"