Added floatToGrid.