Guys
How can I test if a string is a number?
Thanks in advance
Dave
test is string is number
-
- VIP Member
- Posts: 88
- Joined: 18 Jul 2006 17:18
test is string is number
Dave Plummer
- Thomas Linder Puls
- VIP Member
- Posts: 1624
- Joined: 28 Feb 2000 0:01
Re: test is string is number
To test whether the string S is a real:
Code: Select all
R = tryToTerm(real, S)
Regards Thomas Linder Puls
PDC
PDC
Re: test is string is number
Hello Dave,
May next links help you:
test is string is number #1
test is string is number #2
Greetings,
Gal Zsolt
(~ CalmoSoft ~)
May next links help you:
test is string is number #1
test is string is number #2
Greetings,
Gal Zsolt
(~ CalmoSoft ~)
There are two types of programmers :
the one who already uses Ring
or Visual Prolog and the others
who are going to use them some time.
(~ CalmoSoft ~)
calmosoft@gmail.com
the one who already uses Ring
or Visual Prolog and the others
who are going to use them some time.
(~ CalmoSoft ~)
calmosoft@gmail.com
-
- VIP Member
- Posts: 88
- Joined: 18 Jul 2006 17:18
Re: test is string is number
Thanks , but in what class/package can I find trytoTerm?
dp
dp
Dave Plummer
-
- VIP Member
- Posts: 285
- Joined: 5 Nov 2000 0:01
Re: test is string is number
It's "built-in" -- see here: https://wiki.visual-prolog.com/index.ph ... #tryToTerm