Hey guys I have try many type of number when I try to divide two numbers.
For example:
if I have : x = 1, and y= 1000
and I want to get a result of
0.001 if i did x/y
and
1000 if i did y/x
I try using @"%f" but it does not show it in the right way..
I know if I use @"%0.3f" it will show the answer as 0.001
but what if I have y = 10000? the answer will be 0.000
and in my case if I did y/x the answer will be 1000.000
and I only want to show the 1000
how could I do it?
For example:
if I have : x = 1, and y= 1000
and I want to get a result of
0.001 if i did x/y
and
1000 if i did y/x
I try using @"%f" but it does not show it in the right way..
I know if I use @"%0.3f" it will show the answer as 0.001
but what if I have y = 10000? the answer will be 0.000
and in my case if I did y/x the answer will be 1000.000
and I only want to show the 1000
how could I do it?