Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15484

VS 2012 [RESOLVED] Math operation on set of numbers (Textbox)

$
0
0
There's a text box containing a set of numbers like example:
Code:

9 23 6 17 0 3 5 1
First odd digits are decades and even ones are single ones to create a full numbers (From hex. in dec. base) ignore what I said. Following mathematical actions on specific numbers are needed.

Merging is not allowed. Due to inequality of first part x100 then +second part.

Required function(s) would be like:
(9 *256)+23
(6 *256)+17
(0 *256)+3
(5 *256)+1

How can I do such thing in VB.NET?

It could be discrete in 3 smaller steps as I know but not sure how:
  1. Split text from left via " " space character,
  2. Multiplying it to 256 then adding to next number (which also separated),
  3. Remove those numbers each step to creating a loop to repeat the matter.

Viewing all articles
Browse latest Browse all 15484

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>