To convert a galvanometer to an ammeter, a shunt resistance S is connected in parallel. For full-scale deflection:
Current through galvanometer: Ig=1 mA
Total current: I=5 mA
Current through shunt: Is=5−1=4 mA
Since voltage across both is equal: Ig⋅G=Is⋅S
0.001×100=0.004×S
S=0.0040.1=25 Ω