5 module Puppet::Parser::Functions
6 newfunction(:is_float, :type => :rvalue, :doc => <<-EOS
7 Returns true if the variable passed to this function is a float.
11 if (arguments.size != 1) then
12 raise(Puppet::ParseError, "is_float(): Wrong number of arguments "+
13 "given #{arguments.size} for 1")
18 if value != value.to_f.to_s then
27 # vim: set ts=2 sw=2 et :