On Sun, Dec 03, 2017 at 07:25:15AM -0500, Philippe Meunier wrote:

> kshe wrote:
> >Also, the manual defines the length of a number as its number of digits,
> >so perhaps it should be precised that zero is considered to have no
> >digits, which might not be obvious to everyone.
> 
> Am I the only who thinks this is not just not obvious, but actually wrong?
> 
> On a related note, is this:
> 
> $ dc
> 16o16i
> FFZp
> 
> supposed to print 2 or 3?
> 
> Philippe
> 

Well, it is a matter of definition. In this case, bothe the original
and GNU dc define 0Z to be zero. So we should follow.

As fot the second question: 3, as Z prints the number of *decimal* digis.

        -Otto

Reply via email to