- newfunction(:abs, :type => :rvalue, :doc => <<-EOS
- Returns the absolute value of a number, for example -34.56 becomes
- 34.56. Takes a single integer and float value as an argument.
- EOS
- ) do |arguments|
+ newfunction(:abs, :type => :rvalue, :doc => <<-DOC
+ @summary
+ **Deprecated:** Returns the absolute value of a number
+
+ For example -34.56 becomes 34.56.
+ Takes a single integer or float value as an argument.
+
+ > *Note:*
+ **Deprected** from Puppet 6.0.0, the built-in
+ ['abs'](https://puppet.com/docs/puppet/6.4/function.html#abs)function will be used instead.
+
+ @return The absolute value of the given number if it was an Integer
+
+ DOC
+ ) do |arguments|