fraction of an int

Is it possible to get a fraction of an int value?

By definition an Integer is a whole number so it’s not really clear what you’re asking.

not sure if I got the question, but perhaps this might help c# - Possible Loss of Fraction - Stack Overflow

if you want something like 0.3 or something like that you should try double or float or some other type.

No you will have to cast an int in order to not get a whole number, ints will only return whole numbers,

float newNumber = (float)firstIntNumber / (float)secondIntNumber;

The answer is no, since an Integer is a whole number and purposefully devoid of any fractional values by nature.

Use a float.

No worries guys,
thanks for the responses. I figured I can just use a factor of ten on the intial value then just adjust the int fraction I would have wanted by using any value from 1 up.