floatscan: fix incorrect count of leading nonzero digits