Jump to content

How to parse a number


Recommended Posts

Hello,

I'm trying to figure out a way to parse a number in labVIEW. I will have a number that ranges from 101 to 416 and I need to separate the first digit from the last two digits of the number. So far the only way I can think if is to determine if the number is in the 100, 200, 300, or 400 range and then subtract that from the the input, so for example if my number is 416 then I can determine that it is greater than 400 so I would then know to subtract 400 from my number so 416-400=16 so that gives me the last two digits. Is there a better way of doing this?

Thanks

CK

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.