Cannot scale pot value

See this code.

It's returning 0 for scaled. Guessing it sees the pot value as a string vs an integer. any way to convert it to an integer. What am i missing here?


And I realize this does not correctly scale the value. Just trying to get any math out of it. Have tried a lot of different ways to tackle this.


Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!