| |||||||||||
| 数と、その数をつくっている1文字アトムのコードを関係づける。
number_codes(+数, -リスト)
| |||||||||||
| number_codes(1234, L). | L <- [49, 50, 51, 52] の代入で、成功。 |
| number_codes(N, [50, 55, 46, 49, 49]). | N <- 27.11 の代入で、成功。 |
| number_codes(14.3, [49, X, 46, Y]). | X <- 52, Y <- 51 の代入で、成功。 |
この述語は、ISO-Prolog標準に含まれる。
atom_chars/2, atom_codes/2, atom_concat/3, atom_length/2, atom_number/2, char_code/2, number_chars/2, parse_atom/2/3, sub_atom/5
| document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/Predicates/atomic_term/number_codes/print_jp.html published 2008/11/17 update 1998/8/11 (c) 1996-2006 IF Computer Japan | ||||||||
|
| 戻る> |
|