convert price to CGFloat