User blog comment:Naruyoko/PEGG detailed log/N/@comment-32994025-20200112013748/@comment-39541634-20200115213841

Why bother with such a long calculation? It's just an approximation anyway.

For a number like P4.81047738097, I would just approximate it as:

P4.81047738097 ~ [6,4,6,3,7]4

Or if you want something more accurate:

P4.81047738097 ~ [6,4,6,3,6]3[6,4,6,3,2]2[6,4,6,2,1]83