List:Internals« Previous MessageNext Message »
From:Baron Schwartz Date:April 2 2007 12:31pm
Subject:Re: Review of second patch for Bug#25615, "Status command doesn't
report anymore the Queries per second avg"
View as plain text  
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 MILLER20 Mar
  • Re: review of patch for Bug#25615,"Status command doesn't report anymore the Queries per second avg"joce20 Mar
    • Re: review of patch for Bug#25615, "Status command doesn't report anymore the Queries per second avg"Chad MILLER20 Mar
      • Re: review of patch for Bug#25615, "Status command doesn't reportanymore the Queries per second avg"Jocelyn Fournier25 Mar
        • Re: debugger suggestionsChad MILLER26 Mar
          • Re: debugger suggestionsjoce26 Mar
      • [PATCH] Patch for Bug#25615, "Status command doesn't report anymorethe Queries per second avg"Jocelyn Fournier26 Mar
        • Review of second patch for Bug#25615, "Status command doesn't report anymore the Queries per second avg"Chad MILLER2 Apr
          • Re: Review of second patch for Bug#25615, "Status command doesn'treport anymore the Queries per second avg"Baron Schwartz2 Apr
            • Re: Review of second patch for Bug#25615, "Status command doesn't report anymore the Queries per second avg"Chad MILLER2 Apr
          • Re: Review of second patch for Bug#25615,joce2 Apr
          • Re: Review of second patch for Bug#25615, "Status command doesn't report anymore the Queries per second avg"Sergei Golubchik2 Apr
            • Re: Review of second patch for Bug#25615, "Status command doesn'treport anymore the Queries per second avg"joce@presence-pc.com8 Apr
              • Re: Review of second patch for Bug#25615, "Status command doesn't report anymore the Queries per second avg"Sergei Golubchik9 Apr
          • Re: Review of second patch for Bug#25615, "Status command doesn'treport anymore the Queries per second avg"joce@presence-pc.com9 Apr
            • Re: Review of second patch for Bug#25615, "Status command doesn'treport anymore the Queries per second avg"joce@presence-pc.com9 Apr
              • Re: Review of second patch for Bug#25615, "Status command doesn't report anymore the Queries per second avg"Sergei Golubchik9 Apr
              • Re: Review of second patch for Bug#25615, "Status command doesn'treport anymore the Queries per second avg"joce@presence-pc.com9 Apr
                • Re: Review of second patch for Bug#25615, "Status command doesn'treport anymore the Queries per second avg"joce@presence-pc.com9 Apr
                  • Review of fourth patch for Bug#25615, "Status command doesn't report anymore the Queries per second avg"Chad MILLER10 Apr
                    • Re: Review of fourth patch for Bug#25615, "Status command doesn'treport anymore the Queries per second avg"Jocelyn Fournier10 Apr