Results 1 to 3 of 3

Thread: [RESOLVED] Math operation on set of numbers (Textbox)

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member pourkascheff's Avatar
    Join Date
    Apr 2020
    Location
    LocalHost
    Posts
    384

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

    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.
    Last edited by pourkascheff; May 11th, 2021 at 11:00 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width