I am having some problems with the way PHP and javascript round numbers. I am using PHP\'s round function and this javascript function:
php rounds to 152.78, because it sees 152.77499 which is 152.775 and in the end 152.178. can't you use rounded value from php?