def METHOD_NAME(self):
    testNums = [
        # value                expected hex      expected float
        (-9.399999999999999, "ff ff f6 99 9a", -9.3999939),
        (-9.4, "ff ff f6 99 9a", -9.3999939),
        (9.399999999999999999, "ff 00 09 66 66", 9.3999939),
        (9.4, "ff 00 09 66 66", 9.3999939),
        (456.8, "ff 01 c8 cc cd", 456.8000031),
        (-456.8, "ff fe 37 33 33", -456.8000031),
    ]
    for (value, expected_hex, expected_float) in testNums:
        encoded_result = encodeFixed(value)
        # check to see if we got the expected bytes
        self.assertEqual(hexenc(encoded_result), expected_hex)
        # check to see if we get the same value by decoding the data
        decoded_result = read_fixed1616(
            None,
            None,
            encoded_result,
            1,
        )
        self.assertAlmostEqual(decoded_result[0], expected_float)