You'll need a transformation, as
documented here
So your case could be like
Code: Select all
let,1,([MQTbox#dm_vol]-9000)*0.03 // Store in variable #1 l'angolo di riferimento dei volt batteria (dm_volt)
NEXTION,page1.z1.val=[var#1#d1.2]
The 'd' is a Decimals transformation, with spaces prefix if needed ('D' is with zeros prefixed)
the '1' is a minimum of 1 digits before the decimal point (you can set to 0 if desired)
the '.2' is having 2 decimals after the decimal point, value is rounded.
The value is stored in a floating point format, so no information about the number of decimals is stored, that's to be specified when 'presenting' the value, hence the formatting and justification options are included in the variable retrieval.