On Fri, Jan 28, 2011 at 9:09 AM, gdgqler <[email protected]> wrote: > > This is something I would like too. In my BOOT i have a procedure which > prints "a" given a$, but the format of the fp number is QDOS. For example a$ > could be $0800040000000. Of course in QDOS there are no NANs. > > I'm pretty sure that my BOOT also has the reverse procedure, but either I > never use it or I have not used it for along time. > > George > _______________________________________________ > QL-Users Mailing List > http://www.q-v-d.demon.co.uk/smsqe.htm >
Hmmm. a$ = CONVERT$(number, from_base, to_base) from_base and to_base could be eg: 2, 10, 16, FP (for floating point) If the conversion was invalid, simply leave a$ unset or to an impossible value. a$ could be commuted to a if the value was decimal - which would be explicit to the programmer. Dave _______________________________________________ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
