From 40e8f9317b915dc68c53f105851a77d3fba3f345 Mon Sep 17 00:00:00 2001 From: Patrick McDonagh Date: Thu, 1 Feb 2018 11:39:58 -0600 Subject: [PATCH] formatting on Float16 function --- python-driver/utilities.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/python-driver/utilities.py b/python-driver/utilities.py index d47533f..2156c65 100644 --- a/python-driver/utilities.py +++ b/python-driver/utilities.py @@ -18,9 +18,6 @@ def int_to_float16(int_to_convert): if int(bin_rep[0]) == 1: sign = -1.0 exponent = float(int(bin_rep[1:6], 2)) - # if exponent == 30: - # fraction = float(int("1" + bin_rep[:17], 2)) - # else: fraction = float(int(bin_rep[6:17], 2)) if exponent == float(0b00000):