Short decimal number/variable to no decimals

Lügenlord

New member
Hello all Servus!

I've been looking for a solution to a problem for a while now and have tried a lot of things, unfortunately so far in vain...

I want to have the number/variable {battery_current_now} as a number without comma and digits behind it...

eg 6.47 to 6
or 4789.532 to 4790

I get it shortened/rounded to within one decimal place, but no further.
I hope one of you knows.

Thank you!
 
Top