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
I can imagine you are frustrated, and under some stress.
However, I think you should take a breath and calm down, then re-read the advice you have received, because you have not actually followed it.
I agree with Chris and James
I don't think the todecimal is really necessary.
a!floatingPointField( label: "Test Decimal Value", value: ri!value, saveInto: { a!save( ri!value, if( a!isNotNullOrEmpty(save!value), fixed(save!value, 2), null ) ) } )
More info found in this KB article: https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding