I'm getting tired of this, it's almost in complete ruby at this point. I'm converting nothing but the exponent to use bit shifts