Hi,
Whenever I'm trying to enter 271.64 or 2**.65 where (** can be any number) it's getting converted to 2**.64
I'm using below expression for this:
a!floatingPointField( label: "Test Decimal Value", value: todecimal(fixed(trunc(ri!value, 2))), saveInto: ri!value)
Not sure, if this is an issue from Appian. Can anyone confirm this.
Thanks in advance.
Discussion posts and replies are publicly visible
Hi, Please try to use this code which will give you 299.65
a!floatingPointField( label: "Test Decimal Value", value: todecimal(fixed(trunc(299.65, 3))), )
Hi Harshitha,
Thanks for the solution, but here we are passing both parameters of trunc function as rule inputs:
Can you please try this code which will solve your issue
a!floatingPointField( label: "Test Decimal Value", value: todecimal(fixed(299.65,2)) )
Already tried, but this rounds off to next integer value, which is not the expectation here. Like: