Progressbar

Hi,

I tried a lot on my progressbar but I didnt get something that my progressbar is filling up.
Here´s my last try and I think it should work:

Maybe somebody know why it doesnt work.
My integer has a value between 1000 and 2000 so my progressbar should get a value between 0 and 1.

Greetings

http://puu.sh/p6Osq.png

This would do the trick, for 1333 function return 0.333.

It works pretty fine! Thanks a lot!

integer division is not as precise as float division, because it returns whole numbers. if you want decimal places in the answer, use float division.