Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Strange Issue in Adding Decimals using XSL

FofanaJun 19 2019 — edited Jul 4 2019

Can someone explain why I am getting This?

All I am doing, is to add <amount> values from XML, in this case 5 times the value 1.190 (the zero is there because of the 3-digit format)

I noticed the funny result that occurs while adding more than 5 times, but below that all is fine.

This is the code

This is the result:

pastedImage_2.png

Normally 5 X 1.190 = 5.95

where do all digits come from? I am using FOP 1.0

How can I avoid that?

This can be seen as minor issue, some may say just need to round, but here we have around 800 transactions to add, and there may be discrepancies between values

Thanks

This post has been answered by cormaco on Jul 2 2019
Jump to Answer
Comments
Post Details
Added on Jun 19 2019
4 comments
1,336 views