While using the Round Function to calculate a total price with 3 decimal
places down to showing 2. We have found an issue when the number is an
even amount with a zero as the last digit. Fusion pro is dropping the
zero. IF I change the round digit from 2 to 3 it show the 3 decimals
correctly but then when put back to 2 it only shows one for a number that
ends in a zero. Anyone have a suggestion what we are missing to show that
last zero?

Sample code: 
totalenv=parseInt(atnew)+ parseInt(atcomp)+ parseInt(atcurrent) +
parseInt(imsltr) + parseInt(nrhrltr);
totalwelltr=parseInt(atnew)+ parseInt(atcomp)+ parseInt(atcurrent) +
parseInt(imsltr) + parseInt(nrhrltr);
totalvrsc=parseInt(atcomp) + parseInt(nrhrltr);
totalmini=parseInt(atnew)+ parseInt(atcomp)+ parseInt(atcurrent) +
parseInt(imsltr) + parseInt(nrhrltr);
totallite=parseInt(atnew)+ parseInt(atcurrent) + parseInt(imsltr);
postagetotal=totallite*.641+totalvrsc*.796;
postagetotallite=totallite*.641;

heavyamount= 0;
if (totalvrsc <500){postagetotalheavy =totalvrsc*.796;
        heavyamount = .796;}
else {postagetotalheavy = totalvrsc*.796;
        heavyamount = .796;}

myfullreturn =Total Postage @ 2.3oz ($0.641) = $"+
Round(postagetotallite,2) +"<br>"+
                "Total Postage @ 3.5oz ($" + heavyamount + ") = $"+
Round(postagetotalheavy,2) +"<br>"+
                "Total Postage = $"+ Round(postagetotal,2) 
Example:
Total Postage @ 2.3oz ($0.641) = $123.71
Total Postage @ 3.5oz ($0.796) = $222.08
Total Postage = $345.8

**This total Postage should be $345.80

--
Users of FusionPro Desktop have unlimited free email support. Contact Printable 
Support at [EMAIL PROTECTED] 
--
View FusionPro Knowledge Base, FusionPro Samples at
www.printable.com/vdp/desktop.htm

--
You are currently subscribed to fusionpro as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
--


--
Note:  All e-mail sent to or from this address will be received or otherwise 
recorded by the e-mail recipients of this forum. It is subject to archival, 
monitoring or review by, and/or disclosure to someone other than the recipient. 
Our privacy policy is posted on www.printplanet.com
--

Reply via email to