number_atom/2
Converts between a number and an atom
number_atom(Number,Atom) -(i,o),(o,i)
?Number <number> or <variable>
?Atom <atom> or <variable>
Compatibility: LPA Win-Prolog.
Remarks: This predicate converts between numbers and atoms corresponding to their printed representation. Where Number is an unbound variable, and Atom is bound to an atom containing the printed representation of a number, that number is "read" from the atom and returned as Number; Where Number is already a number, it is "written" to an atom which is unified with Atom.