Skip to main content
richardm900458
August 18, 2022
Question

Best way of dealing with a big number of Decimal

  • August 18, 2022
  • 6 replies
  • 0 views

Hello community

I am currently thinking a lot of the kind of super limited way of appian dealing with big decimal numbers.
Example:

12313139.1 as input will result in:

 1.231314e+07  

If you want to transfer this number via API (JSON input) that will cause issues as the receiving system cannot deal with the ‘e+07’ in the end.

-> is there any other approach to solve this except converting it into a string? 
The API developer will think we are unreasonable to have a decimal regardless how big, should be a text. Its not helping appians reputation withing the clients company there.
(and i can understand their thinking)

What are your thoughts on that? Do I miss there something?

6 replies

stefanhelzle0001
August 18, 2022

This has been discussed a hundred times here. This is just the way the decimal is formatted. When I turn a dictionary with a decimal value into JSON, I do see all digits.

richardm900458
August 18, 2022

Perhaps I am doing something wrong here, but thats a statement I am currently not agreeing to

stefanhelzle0001
August 18, 2022

This does match the JSON specification to the point. Exponential notation is part of it.