X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fdsa-puppet.git;a=blobdiff_plain;f=3rdparty%2Fmodules%2Fstdlib%2Flib%2Fpuppet%2Fparser%2Ffunctions%2Fround.rb;h=12067bad9fcd6de313add22fa14b9aaa28c197f8;hp=aaef51a25090e5f36a15a93c6a1a51b24b725cb7;hb=30caaa85aed7015ca0d77216bff175eebd917eb7;hpb=6f656bd4265e3dab13b9af2bf96e9044322e9d8f diff --git a/3rdparty/modules/stdlib/lib/puppet/parser/functions/round.rb b/3rdparty/modules/stdlib/lib/puppet/parser/functions/round.rb index aaef51a25..12067bad9 100644 --- a/3rdparty/modules/stdlib/lib/puppet/parser/functions/round.rb +++ b/3rdparty/modules/stdlib/lib/puppet/parser/functions/round.rb @@ -3,20 +3,20 @@ # module Puppet::Parser::Functions newfunction(:round, :type => :rvalue, :doc => <<-DOC - Rounds a number to the nearest integer + @summary + Rounds a number to the nearest integer - *Examples:* + @return + the rounded value as integer - round(2.9) + @example - returns: 3 + ```round(2.9)``` returns ```3``` - round(2.4) + ```round(2.4)``` returns ```2``` - returns: 2 - - Note: from Puppet 6.0.0, the compatible function with the same name in Puppet core - will be used instead of this function. + > *Note:* from Puppet 6.0.0, the compatible function with the same name in Puppet core + will be used instead of this function. DOC ) do |args|