Round price to end in .45 or .95
We can’t just round to the “nearest” .45 or .95 value. In fact, the first step is to roundupto the nearesthalfdollar (.50). The second step is to subtract 5 cents ($0.05). For example, $4.31 will become $4.50, and $5.72 will become $6.00. Importantly, if a price already ends in .00 or .50, it will remain unchanged (i.e. a price of $4.00 or $4.50 is not affected). Once rounded, the formula simply subtracts 0....