Nandini K
2003-06-06 02:10:15 UTC
Hi Group,
Can u give me some idea on defining a procedure read_hex_num(X) that reads
hexadecimal numbers and converts them to decimal numbers.
For example:
?- read_hex_num(What).
20
What=32
Yes
?- read_hex_num(What).
10fe
What=4350
Yes
Thanks,
nan
_________________________________________________________________
They're big & powerful. The macho mean machines!
http://server1.msn.co.in/features/suv/index.asp SUVs are here to stay!
----------------
* To UNSUBSCRIBE, please use the HTML form at
http://www.swi-prolog.org/mailinglist.html
or send mail to prolog-***@swi.psy.uva.nl using the Subject: "unsubscribe"
(without the quotes) and *no* message body.
** An ARCHIVE of this list is maintained at
http://www.swi.psy.uva.nl/projects/SWI-Prolog/mailinglist/archive/
Can u give me some idea on defining a procedure read_hex_num(X) that reads
hexadecimal numbers and converts them to decimal numbers.
For example:
?- read_hex_num(What).
20
What=32
Yes
?- read_hex_num(What).
10fe
What=4350
Yes
Thanks,
nan
_________________________________________________________________
They're big & powerful. The macho mean machines!
http://server1.msn.co.in/features/suv/index.asp SUVs are here to stay!
----------------
* To UNSUBSCRIBE, please use the HTML form at
http://www.swi-prolog.org/mailinglist.html
or send mail to prolog-***@swi.psy.uva.nl using the Subject: "unsubscribe"
(without the quotes) and *no* message body.
** An ARCHIVE of this list is maintained at
http://www.swi.psy.uva.nl/projects/SWI-Prolog/mailinglist/archive/