I'm looking for assistance on how 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);
}
If anyone could offer guidance, it would be greatly appreciated.