I code to calculate numbers but the results don't match

It shold be 930

Would be helpful to see what data is coming in.

so that is not 30.
and it seems to be a string, that is why it just puts the 00 in the end.
put a + infront of the $json liek this: +$json.valueBm

The + will try to convert it to a numeric value.

I hit rerun, so the value is not 30, but 00.
From line 2 of code, Iā€™m just showing the output I want.

I think I set it to number .

Do you have any other comments or sample code?

{{ ( $json.valueBh * 60 + +$json.valueBm ) }}

Work now! thankyou

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.