fix incorrect location of decimal point for floating-point value in hex, print base (0x) before 0 for hexadecimal