Date parameter diff return wrong calculation [message #686692] |
Wed, 23 November 2022 09:53 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](//www.gravatar.com/avatar/06b42bb1d9c7dd3931310cac212d7c22?s=64&d=mm&r=g) |
hissam78
Messages: 193 Registered: August 2011 Location: PAKISTAN
|
Senior Member |
|
|
Dear experts,
We are using the following date Parameters in report :d1 and :d2 and using the following formula to return no. of months
Entering 01-jul-2022 in :d1 and 30-dec-2022 in :d2
RETURN (trunc(MONTHS_BETWEEN(:D2,:D1),12));
it return 6 months that's ok,
but when we multiply 6 with some value e.g 28000, it return wrong calculation,
some body can help us why it is like that,
regards,
|
|
|
|
|