Check where number 1 is in decimal number
问题 I am having hundreds of numbers like: 0.00100000 0.01000000 0.01000000 1.00000000 0.00001000 0.00000100 I need to check where the number 1 is in those number, so basicly 1.00000000 = 1 0.10000000 = 2 0.01000000 = 3 I tried Round() function, but it sometimes prints numbers like 1.E-6 or something like that, I need exact location of number 1. Thank you very much for help. 回答1: I wouldn't rely too much on the approach you posted in your answer. Use the following function instead: function index