projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update stdlib and concat to 6.1.0 both
[mirror/dsa-puppet.git]
/
3rdparty
/
modules
/
stdlib
/
lib
/
puppet
/
parser
/
functions
/
round.rb
diff --git
a/3rdparty/modules/stdlib/lib/puppet/parser/functions/round.rb
b/3rdparty/modules/stdlib/lib/puppet/parser/functions/round.rb
index
aaef51a
..
12067ba
100644
(file)
--- 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
#
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|
DOC
) do |args|