Possible Duplicate:
Get the seventh digit from an integer
I have an integer and I want a pair number from it.
var myDigit = 2345346792;
I need the 5th and 6th number out from myDigit namely 34.
What is the mathematical way of getting them without any use of substring?
Additional question from my previous thread:
Get the seventh digit from an integer
Repeat your previous solution, using
100instead of10for the modulus and adjusting the division.