Had to move fromFloat into prototype