Try truncate instead of floor.