Commented out testEncodeDouble_32 for now while encodeDOuble is being fixed
Added encodeDouble logic for deciding on a double format