Bug #17291 » jsfunc.evalfield.js.diff
jsfunc.evalfield.js Wed Oct 17 17:37:58 2007 | ||
---|---|---|
if (!value) return 0;
|
||
for (var a=0;a<theVal.length;a++) {
|
||
if (theVal.substr(a,1)!='0') {
|
||
return parseInt(theVal.substr(a,theVal.length)) || 0;
|
||
return (theVal.substr(a,1)=='-'?'-':0) + parseInt(theVal.substr(a,theVal.length)) || 0;
|
||
}
|
||
}
|
||
return 0;
|