format working except for negative infinity, fixed hex vakues in calc