# Math Help - longhand div =/

1. ## longhand div =/

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?

2. Originally Posted by NidhiS
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?

This is a childish answer not always useful ( in fact rarely)

If the number of digits= n

Then $[\frac{Number }{10^{n-1}}]$

Where "[ ]" stands for greatest integer function

3. Originally Posted by NidhiS
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?
Why not just divide the first digit(s) by 10?