View Single Post
  #2 (permalink)  
Old October 11th, 2014, 03:45 PM
stanke stanke is offline
Registered User
Points: 37, Level: 1
Points: 37, Level: 1 Points: 37, Level: 1 Points: 37, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2014
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Try this

Try to change this code
fixNumber = new String(Math.round(fixNumber * div) / div);
into this
fixNumber = (Math.round(fixNumber * div) / div);

String cannot be multiply by number, you create fixNumber as a new instance of String, you are traying to dedicate fixNumber as string.
Reply With Quote