how to stop Decimal Point automatic round off

Certified Lead Developer

why 
0.99999999*0.99999999 shows output 1
and
0.99999999*0.9999999 shows 0.9999999

how to handle bigger number calculation with accurate values ?

  Discussion posts and replies are publicly visible

Parents
  • +1
    Certified Lead Developer
    Hi Parag,

    Your calculated values goes beyond Number (Decimal) acceptable size in byte.

    Decimal in Appian can hold 8 bytes and approximately ±1.79769313486231570E+308
    (15 significant decimal digits) and Integer numbers can range from -2,147,483,647 to 2,147,483,647 (or from -231+1 to 231-1 in scientific notation).
    Hence, Your calculated value is 0.9999999800000001 which is 16 decimal digit. So this is a limitation in Appian.

    Solution for bigger calculation is to use fixed () , if you can handle this as text type and store your data as text type only. Thanks
Reply
  • +1
    Certified Lead Developer
    Hi Parag,

    Your calculated values goes beyond Number (Decimal) acceptable size in byte.

    Decimal in Appian can hold 8 bytes and approximately ±1.79769313486231570E+308
    (15 significant decimal digits) and Integer numbers can range from -2,147,483,647 to 2,147,483,647 (or from -231+1 to 231-1 in scientific notation).
    Hence, Your calculated value is 0.9999999800000001 which is 16 decimal digit. So this is a limitation in Appian.

    Solution for bigger calculation is to use fixed () , if you can handle this as text type and store your data as text type only. Thanks
Children