When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
10 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
;compile
#include <stdio.h>
int main()
{
printf("%.1f" "\n", 420.0); /* outputs 420.0 */
printf("%.0f" "\n", 420.0); /* outputs 4200, why not 420??? */
}
420.0
420
ok, im stupid, its my fricking bash prompt having 0 at the start (dont ask why), and i thought number ended with 0.
off to delete this post to not confuse other people
@zinc flume
Please don't delete forum posts. They can be helpful to refer to later and other members can learn from them. In the future you can use !solved to close a post and mark a post as solved.
is the 0 the exit status?
like if you type false does it change to 1