Puppet Function: math::round

Defined in:
functions/round.pp
Function type:
Puppet Language

Summary

rounds to the nearset decimal

Overview

math::round(Numeric $x)Numeric

Parameters:

  • x (Numeric)

Returns:

  • (Numeric)


2
3
4
5
# File 'functions/round.pp', line 2

function math::round(Numeric $x) >> Numeric {
  # needs implementation with precision 
  $x.round
}