I have a Crystal Report (version 8.5) that is using the following formula.
if {L_NAE_PRICE_LIST.Formula} = 'Y' then x := If Truncate({L_NAE_PRICE_LIST.Cost}*1.485,2) <> ({L_NAE_PRICE_LIST.Cost}*1.485) then
Truncate({L_NAE_PRICE_LIST.Cost}*1.485,2) + 0.50
else
Truncate({L_NAE_PRICE_LIST.Cost}*1.485,2);
I am using Peoplesoft query to drive the report... What I am trying to do with the above formula is to round the cost to the nearest .50 cents.. This formula is not working... I have an Oracle database function called fiftycent that does what I want this formula to do but I don't know how to incorporate the database function into formula or if that is even needed here. I hope I am explaining this well enough... Thanks in advance for any help!!!
Karma
if {L_NAE_PRICE_LIST.Formula} = 'Y' then x := If Truncate({L_NAE_PRICE_LIST.Cost}*1.485,2) <> ({L_NAE_PRICE_LIST.Cost}*1.485) then
Truncate({L_NAE_PRICE_LIST.Cost}*1.485,2) + 0.50
else
Truncate({L_NAE_PRICE_LIST.Cost}*1.485,2);
I am using Peoplesoft query to drive the report... What I am trying to do with the above formula is to round the cost to the nearest .50 cents.. This formula is not working... I have an Oracle database function called fiftycent that does what I want this formula to do but I don't know how to incorporate the database function into formula or if that is even needed here. I hope I am explaining this well enough... Thanks in advance for any help!!!
Karma