can someone explain me what is the meaning of the number after the modulo (%)
EX. printf("the number is: %10.2f", number);
please help me define and understand the number after the % and give example, thanks!
thunderwolf07 0 Newbie Poster
Recommended Answers
Jump to PostIn the case of %f, it's the field width and precision.
The field width specifies the minimum number of characters that will be printed. The field will be padded with whitespace if the value is smaller than the field width. If it's larger, nothing special happens.
The precision …
All 4 Replies
mrnutty 761 Senior Poster
Narue 5,707 Bad Cop Team Colleague
vanalex 0 Junior Poster in Training
thunderwolf07 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.