Fix char to float method.