Skip to Main Content

Intelligent Advisor

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!

Modulo Function not working properly

Shiwani VarshneyMay 28 2015 — edited May 29 2015


Hi Experts,

I am using OPM version 10.4.5. I have three attributes "number1" , "number2" and "number3" and my rule is such that :

number3 = number1 modulo number2

now this modulo function is not giving expected results when I am taking a number less than 1 in the denominator.

For eg:  number1 = 1.2 and number2 = 0.4

Ideally result should have been 0 as 1.2 is divisible by 0.4 but I am getting number3 = 0.4 (which is wrong)

While when number1 = 1.6 and number2 = 0.4, number3 = 0 , in this case I am getting the correct output.

I tried many combinations and I am getting erroneous results in many scenarios.

Kindly suggest how to proceed with this.

Regards,

Shiwani

This post has been answered by Paul Fowler on May 28 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 26 2015
Added on May 28 2015
2 comments
734 views