Template talk:Hex2dec: Difference between revisions
Appearance
Content deleted Content added
→E7 wrong: new section |
|||
Line 12: | Line 12: | ||
== E7 wrong == |
== E7 wrong == |
||
⚫ | |||
Now please look at this (decimal outcome is not checked. The zero says it): |
|||
Please look at this: |
|||
* <code><nowiki>{{hex2dec|00D7}}</nowiki></code> --> {{hex2dec|00D7}} |
* <code><nowiki>{{hex2dec|00D7}}</nowiki></code> --> {{hex2dec|00D7}} |
||
* <code><nowiki>{{hex2dec|00E7}}</nowiki></code> --> {{hex2dec|00E7}} |
* <code><nowiki>{{hex2dec|00E7}}</nowiki></code> --> {{hex2dec|00E7}} |
||
* <code><nowiki>{{hex2dec|00F7}}</nowiki></code> --> {{hex2dec|00F7}} |
* <code><nowiki>{{hex2dec|00F7}}</nowiki></code> --> {{hex2dec|00F7}} |
||
These are neighbors in hex-language: |
|||
* <code><nowiki>{{hex2dec|00E6}}</nowiki></code> --> {{hex2dec|00E6}} |
* <code><nowiki>{{hex2dec|00E6}}</nowiki></code> --> {{hex2dec|00E6}} |
||
* <code><nowiki>{{hex2dec|00E7}}</nowiki></code> --> {{hex2dec|00E7}} |
* <code><nowiki>{{hex2dec|00E7}}</nowiki></code> --> {{hex2dec|00E7}} |
||
* <code><nowiki>{{hex2dec|00E8}}</nowiki></code> --> {{hex2dec|00E8}} |
* <code><nowiki>{{hex2dec|00E8}}</nowiki></code> --> {{hex2dec|00E8}} |
||
Alikes: |
|||
And: |
|||
* <code><nowiki>{{hex2dec| |
* <code><nowiki>{{hex2dec|00E7}}</nowiki></code> --> {{hex2dec|00E7}} |
||
Alike: |
|||
⚫ | |||
* <code><nowiki>{{hex2dec|01E7}}</nowiki></code> --> {{hex2dec|01E7}} |
* <code><nowiki>{{hex2dec|01E7}}</nowiki></code> --> {{hex2dec|01E7}} |
||
* <code><nowiki>{{hex2dec|02E7}}</nowiki></code> --> {{hex2dec|02E7}} |
* <code><nowiki>{{hex2dec|02E7}}</nowiki></code> --> {{hex2dec|02E7}} |
||
Line 33: | Line 31: | ||
* <code><nowiki>{{hex2dec|0AE7}}</nowiki></code> --> {{hex2dec|0AE7}} |
* <code><nowiki>{{hex2dec|0AE7}}</nowiki></code> --> {{hex2dec|0AE7}} |
||
* <code><nowiki>{{hex2dec|0FE7}}</nowiki></code> --> {{hex2dec|0FE7}} |
* <code><nowiki>{{hex2dec|0FE7}}</nowiki></code> --> {{hex2dec|0FE7}} |
||
;Anyone? |
|||
-[[User:DePiep|DePiep]] ([[User talk:DePiep|talk]]) 20:44, 10 September 2010 (UTC) |
-[[User:DePiep|DePiep]] ([[User talk:DePiep|talk]]) 20:44, 10 September 2010 (UTC) |
Revision as of 20:56, 10 September 2010
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)
- Template Template:Hex2rgb(edit talk links history) uses this one, and also has this error. Tagged & talked there too. -DePiep (talk) 10:22, 8 September 2010 (UTC)
E7 wrong
{{hex2dec|E7}}
--> 231 OK, As we expect.
Now please look at this (decimal outcome is not checked. The zero says it):
{{hex2dec|00D7}}
--> 215{{hex2dec|00E7}}
--> 231{{hex2dec|00F7}}
--> 247
These are neighbors in hex-language:
{{hex2dec|00E6}}
--> 230{{hex2dec|00E7}}
--> 231{{hex2dec|00E8}}
--> 232
Alikes:
{{hex2dec|00E7}}
--> 231{{hex2dec|01E7}}
--> 487{{hex2dec|02E7}}
--> 743{{hex2dec|06E7}}
--> 1767{{hex2dec|07E7}}
--> 2023{{hex2dec|08E7}}
--> 2279{{hex2dec|09E7}}
--> 2535{{hex2dec|0AE7}}
--> 2791{{hex2dec|0FE7}}
--> 4071
- Anyone?