Posted: Tue Oct 30, 2007 8:41 am Post subject: How to use numerical calculation
Master
Joined: 03 Jun 2002 Posts: 227
Hi All,
I have a requirement wherein i have to place a decimal after reading the value at a specific place in the read number. So,if the read number is 2435 and the decimal value needs to be placed after 3 digits from the left which will be 2.435. Can anyone please help me in getting this. i have checked esql numeric functions and none tell about placing the decimals.
There should be comments in the section on FORMAT where it talks about formatting numeric values. _________________ I am *not* the model of the modern major general.
Joined: 18 Jul 2002 Posts: 381 Location: Gurgaon, India
You can code this by writing your function and putting the decimal yourself.
Either cast to char(then substring/right/left etc) or do what Jeff says _________________ Shalabh
IBM Cert. WMB V6.0
IBM Cert. MQ V5.3 App. Prog.
IBM Cert. DB2 9 DB Associate
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum