Get Total value with decimals

I used the javascript found in the example " Creating a web form with Data Table and saving data into SharePoint lists" to get a total value based off of the rows in a data table.

I set up the form exactly as shown in the example. Everything works fine, but the decimal places for the “Total” field do not change from “.00”.

How do I add the decimals in the javascript equation?

Hi!

Please try to replace this code snippet from the example

orderTotal += parseInt(value[i].Total);

with

orderTotal += value[i].Total;

1 Like

Thank you so much! It worked!