Add doubleToBits and floatToBits methods.