Oh I forgot to answer the 6138 question.

6138 comes from 0.6 * 1023 = 613.8
In order to get 1 decimal of precision, multiply * 10 for 6138.
<br>