I have this JS code:
var propertyYield = annualRent / propertyValue * 100.0;
In specific scenario the result is 4.999.
So when I do this
propertyYield.toFixed(2)
I'm getting propertyYield of 5.00.
What I want to achieve is to actually get 4.99 instead of 5.00 as rounding to two decimals.
How can I achieve that?