Jump to content

39.95 * 100 = 3995.0000000000005 in Tibco BW. Why


Mohit Bindra

Recommended Posts

I am using Mapper and trying to multiply 39.95 to 100. The answer should be simple 3995 but I got answer as 3995.0000000000005. When I do the same with 49.95, it gives 4995.

This behaviour is for very few numbers but due to this, we got a Production issue as I work in bankingdomain. For now, we have rounded up but I need to know the reason and a solution for this. I am using BW 5.11. Input field is decimal, output field is decimal. Input value comes as 39.95 at runtime.

 

Can anybody help

Link to comment
Share on other sites

  • 2 years later...
  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...