Loading ...
Sorry, an error occurred while loading the content.

289495leading zeros

Expand Messages
  • Jim Reid
    Nov 18, 2012
    • 0 Attachment
      On 18 Nov 2012, at 17:40, Michael Monnerie <lists.michael.monnerie@...-management.at> wrote:

      > Nothing should have problems with leading zeroes.

      Sometimes reality intrudes on ideals. There is legacy software out there which will not behave the way you expect. Sometimes a digit string which begins with a leading zero will be treated as a sequence of digits in octal rather than decimal. [Yes, and a string which starts "0x" is considered to be in hex.] I think this quirk is buried deep in the library code for scanf() and its friends.

      You were just lucky that the whois client you chose for your example did The Right Thing. For your definition of The Right Thing.
    • Show all 6 messages in this topic