*question answered*
*question answered*
Last edited by BobDole11; 09-14-2008 at 11:07 AM. Reason: tabstop helped me
%d says "the thing being passed in is an integer" while %f says "the thing being passed in is a float (actually, a double)". So just change %d to %f when you have a decimal point thing.
Okay, so i changed the %d's to %f's in the instances where I use 3.14159, but how would i do it so you can input a whole number integer or a decimal?
Same deal -- but of course be sure you store it in "float radius" and not "int radius". (A float can handle 3 just as well as it can handle 8.76.)
Alright, thanks man