Aide:Round.txt

De Wiki AutoIt Français
Aller à : navigation, rechercher

Document original V3.3.6.1 :

###Function###
Round

###Description###
Returns a number rounded to a specified number of decimal places.

###Syntax###
Round ( expression [, decimalplaces]  )


###Parameters###
@@ParamTable@@
expression
	Any valid numeric expression.
decimalplaces
	[optional] Number indicating how many places to the right of the decimal are included in the rounding. If omitted, Round returns an integer.
@@End@@


###ReturnValue###
Returns rounded number.


###Remarks###
The <i>decimalplaces</i> parameter can be negative which allows you to round to the ones, tens, hundred, etc. place.  Note that up to fifteen digits of a number are displayed, and note that <i>decimalplaces</i> will never pad a number with trailing zeros.


###Related###
Int, Number, Ceiling, Floor, Random


###Example###
@@IncludeExample@@


Document traduit V3.3.6.1 :

Texte en Français


Traducteur :

Contributeurs (pour les modifications avant le Wiki) :