67
rated 0 times
[
70]
[
3]
/ answers: 1 / hits: 24059
/ 15 Years ago, fri, february 5, 2010, 12:00:00
I need to round up to the nearest 0.10 with a minimum of 2.80
var panel;
if (routeNodes.length > 0 && (panel = document.getElementById('distance')))
{
panel.innerHTML = (dist/1609.344).toFixed(2) + miles = £ + (((dist/1609.344 - 1) * 1.20) + 2.80).toFixed(2);
}
any help would be appreciated
More From » javascript