Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
While calculating amount How to handle value "1.1368683772161603e-13"
Hi
I am doing calculation using following code,
var discAmt = parseFloat(discountItem) * parseFloat(AVA_LineAmount[j]/totalamt);
I am getting value in variable AVA_LineAmount[j] is 1.1368683772161603e-13
because of this i can not doing next calculation, facing error in calculation.
also tried
var discAmtA = parseFloat(discountItem) * ((parseFloat(AVA_LineAmount[j]))/(parseFloat(totalamt)));
Please suggest me asap if any one faced this issue. how i convert in numeric value or any other way to do it.
Thanx in advance......
Regards,
Sheetal.