Jump to content

Template talk:Hex2dec

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by DePiep (talk | contribs) at 19:01, 7 September 2010 (Lowercase can give different result). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Lowercase can give different result

Please compare:

  • {{hex2dec|A9}} --> 169
  • {{hex2dec|a9}} --> 169
  • {{hex2dec|0xA9}} --> 169
  • {{hex2dec|0xa9}} --> 169

So when the "0x"-prefix is missing, the lowercase gives a different (and incorrect) result. So I put the disputed-tag on it. Other input might give the correct result (as I have noticed). Inputting a straight valid hex value like "a9" should be possible. -DePiep (talk) 19:01, 7 September 2010 (UTC)[reply]