Can anyone extract significant digit from 0.0007? : I want to extract significant digit of 7 from XX=0.0007

The code is as follows

XX=0.0007
enX1=XX//10**np.floor(np.log10(XX));

But XX becomes 6 not 7. Can anyone help me?

Thank you!!!