string to integer conversation

string to integer conversation

Post by punkmucke » Thu, 01 Jun 2006 02:51:00


hy!
i need a piece of code which converts strings to integer values. i know
there is a predicate which exactly does this (number_chars/2) but i
wanted to understand the prolog backgrounds. the ascii codes can be
found out with string_to_list('1', X). but i don't know how to
manipulate this list. furthermore i don't know how to go on.

does anyone have suggestions or even a complete sample? i would be very
thankful :)

nice greetings from cold austria