Implementation and spec tests for floor function

Function and spec test credit to @bkkrw / https://github.com/bkkrw/puppet-stdlib