[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bep] 割り算の答えを小数で出すには? <Re: learning lisp: while



n高橋です。一つ書き忘れました。

Reiko TAKAHASHI <HFC03614@...> writes:

> (not (= (/ x y) (/ (float x) y)))

(not (= x y)) は (/= x y) と書くことができます。意味は同じですが、/= 
の方が高速ですし、可読性も下がらないので、こっちを使った方がいいでしょ
う。

-- 
TAKAHASHI Naoto
ntakahas@...
http://www.m17n.org/ntakahas/