Format a given number (decimal point, decimal separator, thousand separator)
number:format(FLOAT $num, INT $decimal_points=0, STRING $decimal_separator=".", STRING $thousands_separator=",") : STRING
number:format(num: 102398.2498)
#=> "102,398.25"
number:format(10)
#=> "10"
number:format(num: 10.298, decimal_points: 2)
#=> "10.30"
number:format(num: 10.298, decimal_points: 5)
#=> "10.29800"
number:format(num: 102398.2498, decimal_points: 2, thousands_separator: '_')
#=> "102_398.25"
Copyright ©2013-2022 SunSed®. All rights reserved.