Converting Binary numbers into hexadecimal numbers

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Converting Binary numbers into hexadecimal numbers

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:52 am

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

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Converting Binary numbers into hexadecimal numbers

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:52 am

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

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Converting Binary numbers into hexadecimal numbers

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:52 am

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

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Converting Binary numbers into hexadecimal numbers

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:52 am

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

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Converting Binary numbers into hexadecimal numbers

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:52 am

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


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 13 guests