Hi all,
The next are statements of tick script, I want to get a percentage value.
```
|eval(lambda: float(100) * ("system.value" / "total.value"))
.as('value')
```
Result value:
6.3636355999903165
I want to get a value like this: 6.36.
In other words, I need to control the precision of the float value.
What should I do?
Thanks!
--
Remember to include the InfluxDB version number with all issue reports
---
You received this message because you are subscribed to the Google Groups
"InfluxDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit
https://groups.google.com/d/msgid/influxdb/2a3d1590-fc14-4842-a1e1-b569c2925bec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.