Question

5
Replies
1881
Views
Close popover
Viswanath Samudrala (Viswa_CG)
Capgemini

Capgemini
IN
Viswa_CG Member since 2017 12 posts
Capgemini
Posted: June 15, 2017
Last activity: July 27, 2017
Closed

Decimal divided-by Integer and Decimal divided-by Decimal for the exact same values return different results!

Example: (1) 84.5/100 = 0.85 Whereas (2) 84.5/100.0 = 0.845

To add to that, when we set BOTH the numbers to Decimal properties the result is (1).

Any clue why?

***Edited by Moderator: Marissa to update categories***

Low-Code App Development Data Integration
Moderation Team has archived post