Re: Hex To Decimal - help pls?
- From: Peter Duniho <NpOeStPeAdM@xxxxxxxxxxxxxxxx>
- Date: Thu, 27 Jan 2011 16:02:58 +0800
On 1/27/11 3:09 PM, xlar54 wrote:
Hey folks, I am in need of a hex to decimal conversion method, but
there are some ugly constraints:
1) All integer types have to be of type ushort (max size is $FFFF or
65535)
2) I can not use any family of the Convert class, Math class, or
System.Globalization.Numberstyles. Has to be all old-school.
(this isnt a homework assignment..) If someone could help, I would
appreciate it. Fought with this all evening.
Hex to decimal conversion is trivial. You can find umpteen examples via Google.
Your #2 requirement seems bizarre to me. What's the point of writing C# code if you're going to do it with one hand tied behind your back? :)
Pete
.
- Follow-Ups:
- Re: Hex To Decimal - help pls?
- From: xlar54
- Re: Hex To Decimal - help pls?
- References:
- Hex To Decimal - help pls?
- From: xlar54
- Hex To Decimal - help pls?
- Prev by Date: Re: DB field name valid
- Next by Date: Re: number as string in database
- Previous by thread: Hex To Decimal - help pls?
- Next by thread: Re: Hex To Decimal - help pls?
- Index(es):