Hi!
We have trying to extract an integer field from an xml response, if the field is a string,we get the value from this field but if it is a integer, it doesnt get the value when it has over 10 characters, is there any way to get interger fields from a xml with 10 or more characters?? Any trick??
Regards
Rebeca
Discussion posts and replies are publicly visible
Hi rebecar369,
the range of integer (regular 32 bit) values is from -2 147 483 648 to 2 147 483 647.So an integer itself as simple data type is never meant to be more than 10 digits. Your issue seems to be more violating the sense of an integer than appian related.Is there any restriction using it as string/text?Do you need more information or support?kind regards,
Richard
You might consider saving the value as a Decimal type, and simply not displaying the decimal point. That's how JavaScript does numbers. There's literally only one numeric type in the entire programming language.
That will get you over 9 quadrillion. At some point after that, it looses so much accuracy that you can only store every even integer up to about 16 quadrillion.
A better question might be what you need 10 digit integers for, and whether integer is really the type you need. Do you need to perform math on them?
please dont such workarounds in appian and in general. your question is the key to it: "A better question might be what you need 10 digit integers for, and whether integer is really the type you need. Do you need to perform math on them?" :)