I have a follow-up question about formating the resulting number.
In your example, {{ $json.number * 6 }} is 30 . I need the number to be “30,00”. I normally append .toFloat().toFixed(2).replace(“.”,“,”), but I am unsure where to append this
No problem, @fxholl - you could do this like this: {{ $json.number.toString().toFloat().toFixed(2).replace('.',',') }}. If you try to simply use .toFloat(), it’s only callable on a String
Ah, that would be because you’d need to do the calculation before you convert the integer over to a string You can then use the rest of the methods I mentioned after multiplying to give you “75,00”, if that makes sense?