Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Verified Answer
Replies
8 replies
Subscribers
9 subscribers
Views
4840 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
PROBLEMS MAPPING DECIMAL
sandrap845
over 4 years ago
Hi,
I'm having a problem with a decimal,
I have the value in a decimal type variable
9,820.65
But when I map it to a decimal type data that is in another cdt it saves this
9820.650000000001
Does anybody know what is it due to?
Regards, and thank you very much
Discussion posts and replies are publicly visible
Top Replies
Dave Lewis
over 4 years ago
+2
verified
Certified Lead Developer
It's because of floating point math. 0.1 is only an approximation, because of the way Decimal is stored (as a Double precision floating point number in Java). In binary, in that format, 1 / 10 is an…
Sandeep
over 4 years ago
+1
verified
Hi, Try using fixed() function for it.