It does fix the issue temporarily but later in the code these variables show value of 11 digit decimal places again. This happens when they are used for calculation. How can I restrict the decimal paces permanently to 2 digits only such that no matter what happens in the code it does not show more than 2 digits. openCurrentBar should be something like 2365.21 and NOT 2365.213456721309.
openCurrentBar=Util.round(localDataSeries.getOpen(paramInt), 2); highCurrentBar=Util.round(localDataSeries.getHigh(paramInt), 2); lowCurrentBar=Util.round(localDataSeries.getLow(paramInt), 2);
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.