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
Try to use fixed(ri!value,2) instead of todecimal(fixed(trunc(ri!value, 2))) under value config.
Already tried, but this rounds off to next integer value, which is not the expectation here. Like:
If we don't want rounding, the combination of only fixed() and trunc() should do this for you:
a!floatingPointField( label: "Test", value: ri!value, saveInto: a!save( ri!value, if( rule!APN_isEmpty(save!value), 0.00, fixed(trunc(save!value,2),2) ) ) )