updated round docs
This commit is contained in:
parent
e265e41ad2
commit
a0739f40af
1 changed files with 9 additions and 3 deletions
|
|
@ -274,16 +274,22 @@ sub randomizeHash {
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
||||||
=head2 round ( real )
|
=head2 round ( float [, significantDigits ] )
|
||||||
|
|
||||||
Returns an integer after rounding a real number.
|
Returns an integer after rounding a floating point number.
|
||||||
|
|
||||||
=over
|
=over
|
||||||
|
|
||||||
=item real
|
=item float
|
||||||
|
|
||||||
Any floating point number.
|
Any floating point number.
|
||||||
|
|
||||||
|
=item significantDigits
|
||||||
|
|
||||||
|
The number of digits to leave after the decimal point. Defaults to 0.
|
||||||
|
|
||||||
|
NOTE: If you set this higher than 0 then you'll get back another floating point number rather than an integer.
|
||||||
|
|
||||||
=back
|
=back
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue