Page 1 of 1

How to find the quotient and remainder at a time in datastag

Posted: Thu Mar 19, 2009 5:29 am
by DWH-M
Hi All,

i have scenario like

600*2 --------------Stag1
Stag1-500----------Stag2
Stage2/Stag1------Stag3
Stag*100-----------Stag4



In this scenario, Stag2 always less than Stag1. How to get exact value?

Ex: 700/1200=0.58333333

Posted: Thu Mar 19, 2009 5:45 am
by Sainath.Srinivasan
2/3 returns recurring decimal. So not possible to find exact value.

Search for round_inf.

Re: How to find the quotient and remainder at a time in data

Posted: Mon Apr 06, 2009 5:36 am
by msuri
Hi,

You have to call the all stagevariables as Decimal Then only u will get exact value


Regards
msuri

Posted: Mon Apr 06, 2009 7:27 am
by ray.wurlod
The second person personal pronoun in English is spelled "you", not "u".

Please strive for a professional standard of written English on DSXchange, because even good English is difficult enough for those whose first language is not English, and because DSXchange is no an SMS-enabled device.