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 ; 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
Hi,
 
    Is there any = predicate that can=20 be used to convert atom or term into integer for = calculation?
I have tried to use "int_to_atom(+Int, +Base,=20 -Atom)" but it doesn't work if I only = instantiated
the Atom part. Can anyone help? = Thanks a=20 lot!
 
Cecilia
--Boundary_(ID_IOSuMVlO8XRdbxayCg/T8g)--