|
Bob you can use REXX to do the conversion for instance your example would be " x2d(b2x(101101))" which equals 45 ------------------------- Bryan Dietz 3X Corporation 614-410-9205 rpg400-l-bounces@xxxxxxxxxxxx wrote on 06/09/2003 12:12:16 PM: > Jerry, > As Hans pointed out strtol (or strtoll for larger numbers) converts from > binary notation 101101 to decimal, but did you ever find a way to go > backwards? I have an old RPGIII grunt method technique that I've been using > for 10 years, but I'd rather find a simpler method. Just wondering. > > Bob Cozzi > Cozzi Consulting > www.rpgiv.com >
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.