since tschaub fixed the limitSigDigs() function to no longer be restricted to integers, nd comments should reflect that.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5083 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -176,14 +176,14 @@ if (!String.prototype.camelize) {
|
|||||||
OpenLayers.Number = {
|
OpenLayers.Number = {
|
||||||
/**
|
/**
|
||||||
* APIFunction: OpenLayers.Number.limitSigDigs
|
* APIFunction: OpenLayers.Number.limitSigDigs
|
||||||
* Limit the number of significant digits on an integer.
|
* Limit the number of significant digits on a float.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* num - {Integer}
|
* num - {Float}
|
||||||
* sig - {Integer}
|
* sig - {Integer}
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {Integer} The number, rounded to the specified number of significant
|
* {Float} The number, rounded to the specified number of significant
|
||||||
* digits.
|
* digits.
|
||||||
*/
|
*/
|
||||||
limitSigDigs: function(num, sig) {
|
limitSigDigs: function(num, sig) {
|
||||||
|
|||||||
Reference in New Issue
Block a user