bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: printing plural values outside unsigned long int range


From: Bruno Haible
Subject: Re: printing plural values outside unsigned long int range
Date: Thu, 17 Aug 2006 19:39:19 +0200
User-agent: KMail/1.9.1

Paul Eggert wrote:
> > + printf (gettext ("Time elapsed: %.3f seconds"), num_milliseconds * 0.001);
> 
> A nit: that example has rounding problems; for example, on my Sparc
> host if num_milliseconds is 9007199254740800, it outputs
> "9007199254740.801 seconds".

It's normal that you reach the limits of double-float precision when
measuring times of 280000 years in terms of milliseconds. Such times
are not realistic in a "time elapsed" context.

> One other nit I saw in the neighborhood:
> 
> --- gettext.texi~     2006-06-30 07:25:39.000000000 -0700
> +++ gettext.texi      2006-08-17 09:58:04.000000000 -0700
> @@ -2428,7 +2428,7 @@ it reads like this:
>  @end smallexample
>  
>  In other words, @code{dgettext} is used instead of @code{gettext}.
> -Similary, the @code{dngettext} function should be used in place of the
> +Similarly, the @code{dngettext} function should be used in place of the
>  @code{ngettext} function.
>  @end enumerate

Thanks, already fixed in the gettext CVS.

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]