I was wondering if you guys know a way to find the first digit of a number.I know that modulus gets you the last digit of a number,

for instance 456%10 = 6 in remainder

but how do you find the first digit?

Results 1 to 3 of 3

- March 19th 2009, 10:08 PM #1

- Joined
- Sep 2008
- Posts
- 76

- March 20th 2009, 01:45 AM #2

- March 20th 2009, 01:46 AM #3