Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: stelth240Posted on 2009-10-15 at 15:20:23ID: 25585483
A derived column makes the most sense. You could do it in a Script Component but that's definitely overkill.
rAmountFie ld1, '0',' ')), ' ','0')) / 100
I'm assuming the scale of the data is always two digits, so in that case I would do this:
(DT_I4) (REPLACE(LTRIM(REPLACE(Use
I haven't tested that so I'm not 100% sure it'll work flawlessly. Mostly, I'd be concerned with the casting but it should work. If the data is not always two digits in the scale, I don't know how you'd figure out how many digits you would need at the right of the decimal. Let me know if that's the case.