# File lib/three141.rb, line 16 def digits(id) s1 = series(1, id).to_f; s2 = series(4, id).to_f; s3 = series(5, id).to_f; s4 = series(6, id).to_f; pid = (4.0 * s1 - 2.0 * s2 - s3 - s4).to_f; pid = pid - pid.to_i; if (pid < 0.0) pid = pid + 1.0; end chx = ihex(pid, 16); return chx[0..10] end