Question: Round down value from ${fs_free(fs)} #1932
Closed
Earthling-Z3R0
started this conversation in
General
Replies: 1 comment
-
Yes, there's a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there!
Is there a way to format this variable that it will only ever show GiB value without any decimals? (I.e. "41,7GiB free" turns into "41GiB free"
I could possibly write a custom lua function but wanted to check for a more easy way first.
Alternatively:
Force 2 decimals even when ${fs_free(fs)} normally doesn't show them (e.g. "339GiB free" turns into "339,00GiB free"
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions