Simple calculation

i get bad results using ‘as number’, because applescript uses integers. I need to sum certain text values with numbers.
see the code below:

0.1 + “0.2”

Hi,

the problem is AppleScript considers the local decimal separator in literal strings
and in Italy the decimal separator is a comma, not a dot.
In a comma-based decimal separator country this should work even without any coercion


0.1 + "0,2"

Thanks Ste,
:lol: it works!