zul.inp.Doublebox=zk.$extends(zul.inp.NumberInputWidget,{coerceFromString_:function(a){if(!a)return null;var e=zk.fmt.Number.unformat(this._format,a,!1,this._localizedSymbols),b=e.raw,f=parseFloat(b),c=""+f,d=c.indexOf("."),g=b.indexOf(".");if(isNaN(f)||0>c.indexOf("e")){0==g&&(b="0"+b,++g);0<=g&&b.substring(b.substring(g+1))&&0>d&&(d=c.length,c+=".");var h=b.length,k=c.length;if(0<=d&&d<g)for(k-=d,h-=g,d=g-d;0<d--;)c="0"+c;if(k<h)for(d=h-k;0<d--;)c+="0";if(isNaN(f)||b!=c&&b!="-"+c&&0>b.indexOf("e"))return isNaN(f)||
b==c?{error:zk.fmt.Text.format(msgzul.NUMBER_REQUIRED,a)}:{error:zk.fmt.Text.format(msgzul.ILLEGAL_VALUE)}}if(7==this._rounding&&(this._errmsg||zk.fmt.Number.isRoundingRequired(a,this.getFormat(),this._localizedSymbols)))return{server:!0};e.divscale&&(f/=Math.pow(10,e.divscale));return f},_allzero:function(a){for(var e=a.length;0<e--;)if("0"!=a.charAt(e))return!1;return!0},coerceToString_:function(a){var e=this._format,b=this._localizedSymbols,f=(b?b:zk).DECIMAL;return null==a?"":e?zk.fmt.Number.format(e,
a,this._rounding,b):"."==f?""+a:(""+a).replace(".",f)},getAllowedKeys_:function(){var a=this._localizedSymbols;return this.$supers("getAllowedKeys_",arguments)+(a?a:zk).DECIMAL+"e"}});
