2006å¹´12æ13æ¥01:15 ã«ãã´ãªLightweight Languages javascript - Math.Rational 㧠1/3 * 3 == 1 å¥ä»¶ã§å¿ è¦ããã£ãã®ã§ã¡ããã£ã¨ãããããã®ã§ãã println(1/3); // println() is predefined println(new Math.Rational(1,3)); // åºæ¬å½¢ println(new Math.Rational('1/3')); // æååãOK println(new Math.Rational('0xdeadbeef/01234567')); // ããã§ãOK println(new Math.Rational(4.2)); // æµ®åå°æ°ç¹ãåæ°å var r1 = new Math.Rational('6/7'); var r2 = new Math.Rat
{{#tags}}- {{label}}
{{/tags}}