Improved price visualization accuracy

Price visualization was not returning the correct value due to floating
point bugs when converting to integer.