Hi. Can someone please assist me on how to perform mathematical operations in nextion (which involves decimals as well).

I have a screen with some numbers and 4 radio buttons, and then a button to calculate the a result from a formula, then use the result on another screen. The numbers are:

QNT.val (a value, non-decimal, from another screen)

BaseSize.val (value from one of the radio buttons selected, 100%, 75%, 50% or 25%)…here are the 1st decimal answer issue…

SingleSize.val (a value, non-decimal, from another screen)

My formula is:

Result.val=QNT.val*BaseSize.val/SingleSize.val*56%

In a “normal” maths operation, it will be:

Result.val=(QNT.val*BaseSize.val) / (SingleSize.val*0.56)

I have tried many options ect but cannot get it to work/compute. Seems like the decimals are the issue? Any ideas to get this computed?

Thanks in advance