HEX char -- > its comlement
- From: pamelafluente@xxxxxxxxx
- Date: 9 Sep 2006 06:06:48 -0700
Hi
what is the smartest function that maps the char on the left to
the char on the right (I want to complement an hexadecimal string,
like making a negative color).
0 -> f
1 -> e
2 -> d
3 -> c
4 -> b
5 -> a
6 -> 9
7 -> 8
8 -> 7
9 -> 6
a or A -> 5
b or B -> 4
c or C -> 3
d or D -> 2
e or E -> 1
f or F -> 0
If there is something able to map in one shot a whole string
to its "complement" would be even better.
-Pam
.
- Follow-Ups:
- Re: HEX char -- > its comlement
- From: Branco Medeiros
- Re: HEX char -- > its comlement
- From: Martin Honnen
- Re: HEX char -- > its comlement
- Prev by Date: Re: Hiding a Property
- Next by Date: Re: Hiding a Property
- Previous by thread: Event Monitoring.
- Next by thread: Re: HEX char -- > its comlement
- Index(es):
Relevant Pages
|
Loading