Quantcast
Channel: Intel® Fortran Composer XE
Viewing all articles
Browse latest Browse all 1424

Simple question - lopping off an integer

$
0
0

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?


Viewing all articles
Browse latest Browse all 1424

Trending Articles



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