Gauche:NaNの扱い

Gauche:NaNの扱い

ちゃんとやろうとすると厄介だなあ。 とりあえず情報集め。

Discussions

Implementations

External Representation

Chez Guile PLT Scheme Gambit Chicken SCM Bigloo Kawa
NaN +nan.0 +nan.0 +nan.0 +nan. nan. #.# #.# #i0/0
+Inf +inf.0 +inf.0 +inf.0 +inf. +inf. +#.# +#.# #i1/0
-Inf -inf.0 -inf.0 -inf.0 -inf. -inf. -#.# -#.# #i-1/0

Features

Chez Guile PLT Scheme Gambit Chicken SCM Bigloo Kawa
-0 O O O O O X X O
readable? O X O O O X X O

NaN Reflexivity

(pred NaN NaN)

Chez Guile PLT Scheme Gambit Chicken SCM Bigloo Kawa
eq? #t #t #t #t #t #t #t
= #f #f #f #f #f #f #f
eqv? #t #t #t #t #t #f #t
equal? #t #t #t #t #t #t #t

Tag: 数値


Last modified : 2008/12/21 21:18:08 UTC