4.7 comprises of two parts,
integer=4 (in this case no of digits = 1)
fraction=7( can be any no of digits,but only 4 digits inclusive of integer are considered while looking log tables)
step1
subtract 1 from no of integer digits;1-1=0
step2
in the table you get numbers from 1.000 to 9.999 (some tables will have 1 to 9 in the first column and 0.1,0.2 ........0.9 in the next columns)
look for 4.700
you will get a value 6270.
step3
so the log = 0+.6270=0.6270.
if the number were to be 47 instead of 4.7,then log will be 1.6270
if the number were to be 476543 instead of 4.7,then log will be 5.6776 (for 476 that is,only for 3digits of the number for which you need the log)
practise any few numbers of 2,3,4,5,6 digit numbers to get the hang of the things.
trust, have not muddied your brain