Issue Feature Closed

#28027Add rounding functions to stdWrap

Kilian Hann 07/09/11, 12:00 updated 06/01/13, 14:43

Description

Rounding functionality from PHP, defaults to @round($number, 2):

  • round() with number of decimals
  • ceil()
  • floor()

How to use

temp.number = TEXT
temp.number {
    value = 3.14159
        # types: round,ceil,floor, defaults to round
    round.roundType = round
        # only used with "round" type
    round.decimals = 2
}

Reviews 2