digitalmars.D - hexadecimal to decimal
- maarten van damme <maartenvd1994 gmail.com> Jul 22 2011
- "Vladimir Panteleev" <vladimir thecybershadow.net> Jul 22 2011
- maarten van damme <maartenvd1994 gmail.com> Jul 23 2011
- Jonathan M Davis <jmdavisProg gmx.com> Jul 23 2011
--000e0cd2e3164e213904a8b05e6b Content-Type: text/plain; charset=ISO-8859-1 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? --000e0cd2e3164e213904a8b05e6b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable In my new project I read some memory from another running program.<div>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 m= issing. Is there a method for this?</div> --000e0cd2e3164e213904a8b05e6b--
Jul 22 2011
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
--bcaec53961c0a59a7d04a8bf2f0e Content-Type: text/plain; charset=ISO-8859-1 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>
--bcaec53961c0a59a7d04a8bf2f0e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable ooops, didn't knew I had been posting in the wrong newsgroup, sorry guy= s :)<br><br><div class=3D"gmail_quote">2011/7/23 Vladimir Panteleev <span d= ir=3D"ltr"><<a href=3D"mailto:vladimir thecybershadow.net">vladimir thec= ybershadow.net</a>></span><br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex;"><div><div></div><div class=3D"h5">On Sat, 2= 3 Jul 2011 01:55:56 +0300, maarten van damme <<a href=3D"mailto:maartenv= d1994 gmail.com" target=3D"_blank">maartenvd1994 gmail.com</a>> wrote:<b= r> <br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"> In my new project I read some memory from another running program.<br> The problem is that I get the value I want in hexadecimal and in d I could<= br> only find how to convert decimal to hexadecimal while the reverse seems to<= br> be missing. Is there a method for this?<br> </blockquote> <br></div></div> int value =3D parse!int(hexValue, 16);<br> <br> You may find the newsgroup digitalmars.D.learn more appropriate for such qu= estions :)<br><font color=3D"#888888"> <br> -- <br> Best regards,<br> =A0Vladimir =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0mailto:<= a href=3D"mailto:vladimir thecybershadow.net" target=3D"_blank">vladimir <u=</u>thecybershadow.net</a><br>
--bcaec53961c0a59a7d04a8bf2f0e--
Jul 23 2011
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









"Vladimir Panteleev" <vladimir thecybershadow.net> 