Hello, I am trying to add two decimal fields together, and display the result, including the two decimals.
$w( “#PCQuote” ).value = 25.13
let PCQuote = Number|$w( ‘#PCQuote’ ).value;
let HYQuoteTotal = Number|$w( ‘#HYQuoteTotal’ ).value;
$w( ‘#HYQuoteTotal’ ).value = HYQuoteTotal + PCQuote;
The field on the page #HYQuoteTotal will display 25.00 instead of 25.13.
If anyone can help me understand why the decimals are 00 instead of 13, that would be much appreciated.
cheers Tricia