Fixed FromFloat conversion function