Corrected floor algo & some sformat data types (successfully tested)