Beginnings of a double to bytes function.