Slightly off-topic n00b question, but I hope you don't mind:
> In particular, I'm interested in the results of:
>
> char foo[20];
> my_snprintf(foo, 10, ">%0f<", 0.987654321098765432);
> my_snprintf(foo, 10, ">%.0f<", 0.987654321098765432);
> my_snprintf(foo, 10, ">%09.4f<", 0.987654321098765432);
> my_snprintf(foo, 10, ">%.1f<", 0.987654321098765432);
> my_snprintf(foo, 3, ">%.1f<", 0.987654321098765432);
> my_snprintf(foo, 4, ">%.1f<", 0.987654321098765432);
> my_snprintf(foo, 10, ">%.3f<", 0.987654321098765432);
> my_snprintf(foo, 10, ">%.4f<", 0.987654321098765432);
> my_snprintf(foo, 10, ">%+.4f<", 0.987654321098765432);
> my_snprintf(foo, 10, ">%+.5f<", 0.987654321098765432);
> my_snprintf(foo, 10, ">%.6f<", 0.987654321098765432);
> my_snprintf(foo, 10, ">%.7f<", 0.987654321098765432);
> my_snprintf(foo, 10, ">%80f<", 0.987654321098765432);
Is there anything magical about 0.987654321098765432 as a test number?
Thanks for your time!
Baron
| Thread |
|---|
| • review of patch for Bug#25615, "Status command doesn't report anymore the Queries per second avg" | Chad MILLER | 20 Mar |
| • Re: review of patch for Bug#25615,"Status command doesn't report anymore the Queries per second avg" | joce | 20 Mar |
| • Re: review of patch for Bug#25615, "Status command doesn't report anymore the Queries per second avg" | Chad MILLER | 20 Mar |
| • Re: review of patch for Bug#25615, "Status command doesn't reportanymore the Queries per second avg" | Jocelyn Fournier | 25 Mar |
| • Re: debugger suggestions | Chad MILLER | 26 Mar |
| • Re: debugger suggestions | joce | 26 Mar |
| • [PATCH] Patch for Bug#25615, "Status command doesn't report anymorethe Queries per second avg" | Jocelyn Fournier | 26 Mar |
| • Review of second patch for Bug#25615, "Status command doesn't report anymore the Queries per second avg" | Chad MILLER | 2 Apr |
| • Re: Review of second patch for Bug#25615, "Status command doesn'treport anymore the Queries per second avg" | Baron Schwartz | 2 Apr |
| • Re: Review of second patch for Bug#25615, "Status command doesn't report anymore the Queries per second avg" | Chad MILLER | 2 Apr |
| • Re: Review of second patch for Bug#25615, | joce | 2 Apr |
| • Re: Review of second patch for Bug#25615, "Status command doesn't report anymore the Queries per second avg" | Sergei Golubchik | 2 Apr |
| • Re: Review of second patch for Bug#25615, "Status command doesn'treport anymore the Queries per second avg" | joce@presence-pc.com | 8 Apr |
| • Re: Review of second patch for Bug#25615, "Status command doesn't report anymore the Queries per second avg" | Sergei Golubchik | 9 Apr |
| • Re: Review of second patch for Bug#25615, "Status command doesn'treport anymore the Queries per second avg" | joce@presence-pc.com | 9 Apr |
| • Re: Review of second patch for Bug#25615, "Status command doesn'treport anymore the Queries per second avg" | joce@presence-pc.com | 9 Apr |
| • Re: Review of second patch for Bug#25615, "Status command doesn't report anymore the Queries per second avg" | Sergei Golubchik | 9 Apr |
| • Re: Review of second patch for Bug#25615, "Status command doesn'treport anymore the Queries per second avg" | joce@presence-pc.com | 9 Apr |
| • Re: Review of second patch for Bug#25615, "Status command doesn'treport anymore the Queries per second avg" | joce@presence-pc.com | 9 Apr |
| • Review of fourth patch for Bug#25615, "Status command doesn't report anymore the Queries per second avg" | Chad MILLER | 10 Apr |
| • Re: Review of fourth patch for Bug#25615, "Status command doesn'treport anymore the Queries per second avg" | Jocelyn Fournier | 10 Apr |