Skip to Content

Int Values Range

HI All,

As per XSD the data type "int" represents a 32-bit signed integer in the range [-2,147,483,648, 2,147,483,647].

So in PI if the values range exceed this value "2,147,483,647" it should throw error right?

If am giving input as lke this "165165415616551453131655645644646546546546546" it is taking and processing sucessfully.

I want to understand this please share your inputs.

Regards,

Manigandan

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Dec 30, 2013 at 11:35 AM

    HI,

    Any inputs plz.

    Regards,

    Manigandan

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 30, 2013 at 02:42 PM

    Hi Mani,

    PI will not throw errors when you give out of range integer because it will not validate the data (by default). But if you perform any arithmetic operation on data then it will give wrong result (wierd behavior).

    regards,

    Harish

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.