Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

replicate issue

Status
Not open for further replies.

rogerzebra

Technical User
May 19, 2004
216
SE
Hi Fellows!
I could definately need another pair of eyes to take a look at the issue I have with a replicate, I can't see what's missing in my code. As usual I appreciate all your input. Thx
Code:
replicate('0',22 - len(round(abs((cast(a 
			+ b 
			+ c 
			+ d 
		    	+ e as decimal (38,2)))
			* f)
			-
			(cast(a 
			+ b 
			+ c 
			+ d 
			+ e as decimal (38,2))
			* 0.2),0)))
 
Okay I got it, here is how I solved it. Thanks for trying if someone did.
Code:
replicate('0',22 - len(ltrim(str(
			round(abs((cast(a 
			+ b 
			+ c 
			+ d 
		    	+ e as decimal(38,2)))
			* f)
			-
			(cast(a
			+ b
			+ c
			+ d
			+ e as decimal(38,2))* 0.2),0)
			)))) 
			+
			ltrim(str(
			round(abs((cast(a
			+ b
			+ c
			+ d
		    	+ e as decimal (38,2)))
			* f)	
			-
			(cast(a
			+ b
			+ c
			+ d
			+ e as decimal(38,2))* 0.2),0)
			))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top