changed to produce iterations number on "shell"

Works for values with 0 to 1 float.