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 cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

RSView question about strings

Status
Not open for further replies.

Wolfsnap

Industrial
Joined
May 19, 2003
Messages
2
Location
US
I need to read from two different integer files and combine the results into a display, do some math to the result, and send the final result back to another integer. The problem starts with the "combining" - I don't want to add them, just combine them. Example, if I have a 6 in N9:1 and a 3 in N9:2, I need the final result to be 63 (not 9).

I was able to do this by creating two string integers that read from the two integers and combining them with an expression (N9:1)+(N9:2) to display in a numeric display (which seems to work fine - don't know if I'm breaking any rules here)

My problem now is that I need to perform a calculation on the displayed result and send it to, say, N9:3 (Actually, I need to do several calculations with that number and sent the various results to individual integer files)

Any help along these lines would be greatly appreciated!

Wolf
 
I would multiply the N9:1 by 10, then add the two.
 
OMG - I never thought of that! That simplifies everything I need to do! I can't tell you how much that small suggestion helped!! I've been overthinking the whole thing.

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top