converts a string into an integer or vice versa
str_int("12",Int) str_char(Str,20)
str_char(String,Integer) (i,x) (x,i)
string(string) (x) string containing only the number Int
integer(Int) (x) integer representing the value of the number in string
Converts a string into an integer or vice versa. If string is bound, it must contain a single number for the predicate to succeed.
No runtime errors.
readln(String), ( str_int(String,Integer), write(Integer),nl ; write("was no integer."),nl ).
prolog-process, client-server, object