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

- Mar 19th 2009, 09:08 PM #1

- Joined
- Sep 2008
- Posts
- 76

- Mar 20th 2009, 12:45 AM #2

- Mar 20th 2009, 12:46 AM #3