converting decimal values to smaller decimal values

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
ketanshah123
Participant
Posts: 88
Joined: Wed Apr 05, 2006 1:04 am

converting decimal values to smaller decimal values

Post by ketanshah123 »

Hi

How can I convert decimal values of say length 7,2 to length 5,2 ?

Thanks in advance
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You could probably do an implicit conversion, or explicitly using the DecimalToDecimal() function. Keep in mind the fact that you are going to get warnings whenever you do something like this, sending a larger something to a smaller something as it won't necessarily fit.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply