Feature floor and ceil

reapplied the floor() and ceil() functions against the develop branch.