# Float variable type

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

Hi Kevin,

I believe you are looking for this:

https://forum.cogsci.nl/discussion/4111/calculating-specific-accuracy-with-decimals

Good luck

Stephan

In short:

`c = a/float(b)`

Eduard