MODEL BUILDER: decimal numbers in "for"-loop as increment

945
2
03-08-2013 04:17 AM
ThomasFischer
New Contributor
Hi,

i've build a workflow in Model Builder and want to iterate this with via "for"-loop between values from 0 to 1 within 0.1 steps (=11 loops overall). But it is not possible for me to set "By Value" to 0.1 or any other decimal number. Do you have any idea for a workaround?

Thanks and greetings,

Thomas
0 Kudos
2 Replies
norie
by
New Contributor III

  1. Set up your FOR loop to go from 0 to 10.

  2. Add a Calculate Value tool.

  3. Set Data type of Calculate Value tool to Double

  4. Set Expression as float(%value%)/10

0 Kudos
ThomasFischer
New Contributor

  1. Set up your FOR loop to go from 0 to 10.

  2. Add a Calculate Value tool.

  3. Set Data type of Calculate Value tool to Double

  4. Set Expression as float(%value%)/10



Aaron,

thank you, its working. - Greetings, Thomas
0 Kudos