www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - hexadecimal to decimal

reply maarten van damme <maartenvd1994 gmail.com> writes:
In my new project I read some memory from another running program.
The problem is that I get the value I want in hexadecimal and in d I could
only find how to convert decimal to hexadecimal while the reverse seems to
be missing. Is there a method for this?
Jul 22 2011
parent reply "Vladimir Panteleev" <vladimir thecybershadow.net> writes:
On Sat, 23 Jul 2011 01:55:56 +0300, maarten van damme  
<maartenvd1994 gmail.com> wrote:

 In my new project I read some memory from another running program.
 The problem is that I get the value I want in hexadecimal and in d I  
 could
 only find how to convert decimal to hexadecimal while the reverse seems  
 to
 be missing. Is there a method for this?
int value = parse!int(hexValue, 16); You may find the newsgroup digitalmars.D.learn more appropriate for such questions :) -- Best regards, Vladimir mailto:vladimir thecybershadow.net
Jul 22 2011
next sibling parent maarten van damme <maartenvd1994 gmail.com> writes:
ooops, didn't knew I had been posting in the wrong newsgroup, sorry guys :)

2011/7/23 Vladimir Panteleev <vladimir thecybershadow.net>

 On Sat, 23 Jul 2011 01:55:56 +0300, maarten van damme <
 maartenvd1994 gmail.com> wrote:

  In my new project I read some memory from another running program.
 The problem is that I get the value I want in hexadecimal and in d I could
 only find how to convert decimal to hexadecimal while the reverse seems to
 be missing. Is there a method for this?
int value = parse!int(hexValue, 16); You may find the newsgroup digitalmars.D.learn more appropriate for such questions :) -- Best regards, Vladimir mailto:vladimir **thecybershadow.net<vladimir thecybershadow.net>
Jul 23 2011
prev sibling parent Jonathan M Davis <jmdavisProg gmx.com> writes:
On Saturday 23 July 2011 18:36:38 maarten van damme wrote:
 ooops, didn't knew I had been posting in the wrong newsgroup, sorry guys :)
It's not that big a deal, but D.Learn is intended for questions on how to use D and its standard libraries whereas D is for more general discussions on the language. So, questions like this typically should be posted in D.Learn rather than D. - Jonathan M Davis
Jul 23 2011