Page 1 of 1

Converting Binary numbers into hexadecimal numbers

Posted: Fri Aug 07, 2009 11:52 am
by ConvertFromOldNGs
by JADE Kid - Ray Hidayat >> Fri, 21 Apr 2000 23:19:57 GMT

I've been wondering if there is a way to convert binary numbers into hex. But if there isn't, it won't be too hard to make a method to do that.

I have looked up in the help and it says that I can put a '#' in front of a string, and it will be looked at as a binary number.
So converting from hex to binary is easy, but what about the other way?

--
Ray Hidayat
JADE Kid - 2000
www.jadekids.com

Re: Converting Binary numbers into hexadecimal numbers

Posted: Fri Aug 07, 2009 11:52 am
by ConvertFromOldNGs
by Arjan van Hasselt >> Wed, 26 Apr 2000 3:40:53 GMT

There are two methods called ISHEX and TOHEX on Character Type which may do the trick.

Regards ...AJ

Re: Converting Binary numbers into hexadecimal numbers

Posted: Fri Aug 07, 2009 11:52 am
by ConvertFromOldNGs
by JADE Kid - Ray Hidayat >> Thu, 27 Apr 2000 20:09:53 GMT

Got that. I didn't see that on the string, so I'll have to do each char seperately. Unfortunately.

--
Ray Hidayat
JADE Kid - 2000
www.jadekids.com

Re: Converting Binary numbers into hexadecimal numbers

Posted: Fri Aug 07, 2009 11:52 am
by ConvertFromOldNGs
by Torrie Moore >> Sun, 30 Apr 2000 20:47:27 GMT

Write a method on the string class! That's the beauty of Jade!

Torrie
torrie@concept-eng.co.nz

Re: Converting Binary numbers into hexadecimal numbers

Posted: Fri Aug 07, 2009 11:52 am
by ConvertFromOldNGs
by JADE Kid - Ray Hidayat >> Mon, 1 May 2000 6:11:34 GMT

Yes of course. I'll do that.

--
Ray Hidayat
JADE Kid - 2000
www.jadekids.com