K
kennethlou
Hi,
If in C a variable appears like X=10.000000, I can round it to zero
decimal places. ie X=10?
I then have to save the number into a variable.
The method appears below:
**************************************
and the result will appear on the screen as "10"
is there any method to "save" the rounded value as X?
Thanks,
If in C a variable appears like X=10.000000, I can round it to zero
decimal places. ie X=10?
I then have to save the number into a variable.
The method appears below:
**************************************
printf("Round % .f \n", 10.0000000);
and the result will appear on the screen as "10"
is there any method to "save" the rounded value as X?
Thanks,