From 50000481@plink.cityu.edu.hk Thu Mar 22 11:54:11 2001
Received: from plink2.cityu.edu.hk (carol.cityu.edu.hk [144.214.5.208])
	by swi.psy.uva.nl (8.11.2/8.11.2) with ESMTP id f2MAsA312496
	for <prolog@swi.psy.uva.nl>; Thu, 22 Mar 2001 11:54:11 +0100 (MET)
Received: from ceciserver (cpct78.cityu.edu.hk)
 by plink2.cityu.edu.hk (Sun Internet Mail Server sims.3.5.1999.03.02.17.58.p5)
 id <0GAL00101I6KLZ@plink2.cityu.edu.hk> for prolog@swi.psy.uva.nl; Thu,
 22 Mar 2001 18:53:18 +0800 (HKT)
Received: from ceciserver (cpct78.cityu.edu.hk)
 by plink2.cityu.edu.hk (Sun Internet Mail Server sims.3.5.1999.03.02.17.58.p5)
 with SMTP id <0GAL001OKI7OEZ@plink2.cityu.edu.hk> for prolog@swi.psy.uva.nl;
 Thu, 22 Mar 2001 18:52:36 +0800 (HKT)
Date: Thu, 22 Mar 2001 18:58:50 +0800
From: Cecilia Wong <50000481@plink.cityu.edu.hk>
To: prolog@swi.psy.uva.nl
Message-id: <001301c0b2bf$138bf190$4e14d690@cityu.edu.hk>
MIME-version: 1.0
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
Content-type: MULTIPART/ALTERNATIVE;
 BOUNDARY="Boundary_(ID_IOSuMVlO8XRdbxayCg/T8g)"
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
X-Priority: 3
Subject: [SWIPL] convert atom or term to integer

This is a multi-part message in MIME format.

--Boundary_(ID_IOSuMVlO8XRdbxayCg/T8g)
Content-type: text/plain; charset="big5"
Content-transfer-encoding: quoted-printable

Hi,

    Is there any predicate that can be used to convert atom or term into =
integer for calculation?
I have tried to use "int_to_atom(+Int, +Base, -Atom)" but it doesn't =
work if I only instantiated
the Atom part. Can anyone help? Thanks a lot!

Cecilia

--Boundary_(ID_IOSuMVlO8XRdbxayCg/T8g)
Content-type: text/html; charset="big5"
Content-transfer-encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dbig5">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; Is there any =
predicate that can=20
be used to convert atom or term into integer for =
calculation?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I have tried to use "<A=20
name=3Dint_to_atom/3><STRONG>int_to_atom</STRONG>(<VAR>+Int, +Base,=20
-Atom</VAR>)</A>" but it doesn't work if I only =
instantiated</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>the Atom part.&nbsp;Can anyone help? =
Thanks a=20
lot!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Cecilia</FONT></DIV></BODY></HTML>

--Boundary_(ID_IOSuMVlO8XRdbxayCg/T8g)--

