I'm trying to work out how to round a decimal to .49 or .99.
I have found the toFixed(2)
function, but not sure how to round up or down.
Basically need to get to the closest price point, so for example X.55 would go down to X.49 and X.84 would go up to X.99.