hi..
i try to use the sinus function with gcc & devkitadv but the output is always bullshit.
here my code ..
.. but nothing would be shown ..
so how to use sin()?
it will also be useful to know how to output a float value as text using GpTextOut... i wasn't able to get atoi() working correct...
thx
i try to use the sinus function with gcc & devkitadv but the output is always bullshit.
here my code ..
Code:
if(sin(90)==1) /*for degrees*/
GpTextOut(NULL, &gpDraw[nflip], 0, 0, "Degrees", 0);
if(sin(M_PI/2)==1) /*for radians*/
GpTextOut(NULL, &gpDraw[nflip], 0, 0, "Radians", 0);
if(sin(100)==1) /*for grads*/
GpTextOut(NULL, &gpDraw[nflip], 0, 0, "Grads", 0);
.. but nothing would be shown ..
so how to use sin()?
it will also be useful to know how to output a float value as text using GpTextOut... i wasn't able to get atoi() working correct...
thx