Skip to main content
sravanthik0001
January 25, 2022
Question

Passing a 10 digit number as rule input, giving infinity error

  • January 25, 2022
  • 10 replies
  • 0 views

I am trying to pass a 10 digit number  (7500882768)  as a rule input in my ER and it has to be of integer format only cannot pass it as text or some other format , but it is getting considered as infinity. Is there any way of passing the exact number without it being considered as infinte?

    10 replies

    stefanhelzle0001
    Brainy
    January 25, 2022

    You will find a large number of discussions about this here. E.g.:

    community.appian.com/.../what-s-the-meaning-of-infinity-symbol-in-instance

    sravanthik0001
    January 25, 2022

    I need to pass the number as it is(without changing digits or data type) and this number exceeds the maximum range of integer . How to pass if a number exceeds the maximum range? and it is mandatory to pass it as integer only and not as text or some thing else.

    stefanhelzle0001
    Brainy
    January 25, 2022

    Appian integers are limited to 32 bits. BigInteger is requested since many years. Still waiting.

    The only solution I see is text.

    agamb0001
    January 25, 2022

    What is your use case and in specific why cant you change int to decimal?

    Converting it to decimal gives you more control for doing calculations with large numbers.

    you can still display the decimal as integer on the interface and use validations to ensure only integer is entered and not decimal

    sravanthik0001
    January 25, 2022

    I need to use it for making an api call and they expect only integer

    harshitb6843
    January 25, 2022

    The API call must expect that parameter in the request body. If so, you can transport that value in text format till the integration. And then, you can try to remove the quotes when building a JSON.