These functions did not play well with the rest of the code, causing float conversion to produce an incorrect value.