round_decimalSyntaxeround_decimal(the_number, the_decimals) Arrondit un nombre avec un nombre de décimales . Le paramètre the_number est au format texte; le format du paramètre the_decimals est indifférent, le résultat est au format nombre. Par Daniel Varlet Exempleround_decimal("19,749", 2) ---> 19.75
Scripton round_decimal(the_number, the_decimals) return (round (the_number * (10 ^ the_decimals))) / (10 ^ the_decimals) end round_decimal
|