- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Suppose I have a 5-digit integer, and I want to recover the last 2 digits. I just want to lop of the 1st 3 digits. Is there an easy way to do this ?
If the variable were character, I could do this using a trim function.
What I had in mind was an indexed internal read of the variable containing the 4-digit integer but I can't get the read format right.
Any slick ideas?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oops.
What I had in mind was an indexed internal read of the variable containing the 4-digit integer but I can't get the read format right.
was supposed to be:
What I had in mind was an indexed internal read of the variable containing the 5-digit integer but I can't get the read format right.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What about mod(100)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That would be mod(Var,100)
Beautiful. Now why didn't I think of that?
Thanks a lot, John!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That would be mod(Var,100) = programmer
mod(100) = pure mathematician

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page