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:
euzuro
2007-11-01 08:23:10 +00:00
parent 6360ebadcd
commit e14f0c20b8

View File

@@ -176,14 +176,14 @@ if (!String.prototype.camelize) {
OpenLayers.Number = {
/**
* APIFunction: OpenLayers.Number.limitSigDigs
* Limit the number of significant digits on an integer.
* Limit the number of significant digits on a float.
*
* Parameters:
* num - {Integer}
* num - {Float}
* sig - {Integer}
*
* Returns:
* {Integer} The number, rounded to the specified number of significant
* {Float} The number, rounded to the specified number of significant
* digits.
*/
limitSigDigs: function(num, sig) {