Howdy, Stranger!

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

Supported by

Float variable type

I want to fix the variables to be float variable
I have 3 variables, a, b, c
a and b are both integers
c = a/b <---- with decimal and should be smaller than 1
But now c always equal to 0
I have tried to fix the starting value of a to 0.1, then everything work fine
Is anyone have a better solution instead of fix the starting value to 0.1??

Comments

Sign In or Register to comment.