floor and ceil work properly for all but complex