5 module Puppet::Parser::Functions
6 newfunction(:round, :type => :rvalue, :doc => <<-EOS
7 Rounds a number to the nearest integer
22 raise Puppet::ParseError, "round(): Wrong number of arguments given #{args.size} for 1" if args.size != 1
23 raise Puppet::ParseError, "round(): Expected a Numeric, got #{args[0].class}" unless args[0].is_a? Numeric