document.writeln(Math.floor(43.9));
ブラウザで43を生成します。
document.writeln(Math.floor(43.9999));
43を生成します
document.writeln(Math.floor(43.999999999999));
再び43
でも、
document.writeln(Math.floor(43.99999999999999));
44を生成します。
小数点以下9のマジックナンバーは15*のようです。
どうしてこれなの?
さらに、Math.floor関数は、数値を数値オブジェクトまたは数値値として受け入れますか?