Does someone knows about this problem? This is the behavior that I encounter it so far!
I’m fixing it doing this, but it’s not so nice:
var value = utils.stringToNumber(valueText);
if (valueText.charAt(0) == '-') {
value = -value;
}
Does someone knows about this problem? This is the behavior that I encounter it so far!
I’m fixing it doing this, but it’s not so nice:
var value = utils.stringToNumber(valueText);
if (valueText.charAt(0) == '-') {
value = -value;
}
yes stringToNumber just removes all none digit chars and only test for .
can’t you use something like parseInt() ?
why do you need it?
I retrieve some data in an xml and I calculate the total amount of some numbers. They are also negative numbers there. Would be nice if you can change it to accept also negative text or numbers.
Where do I find parseInt()?
that just a global standard js function…
see the JSLib node in the SolutionExplorer Tree