ã¨ãªãã®ãåå ã§ããparseInt ã¨ããã®ã¯ãæååã解æãã¦æ´æ°å¤ï¼intï¼ãè¿ãã°ãã¼ãã«é¢æ°ã§ãããå¼æ°ãã¾ãæååã«å¤æããä»æ§ã¨ãªã£ã¦ããã¾ãããã®æ®µé㧠0.0000005 ã "5e-7" ã¨ããæååã«å¤æããã¦ãã¾ãããã®æååã®å é ã® 5 ã ããæ°åã¨ãã¦è§£æããã¦ãã¾ã£ããããçµæã¨ã㦠parseInt(0.0000005) === 5 ã¨ãªãã¾ããã ãªã String(0.000005) === "0.000005" ã«ãString(0.0000005) === "5e-7" ã«ãªãã®ãã«ã¤ãã¦ã¯ããã®è¨äºã®æå¾ã§ä½è«ã¨ãã¦èª¬æãã¾ãã æ´æ°åã«ã¯ Math.trunc ã使ãã ãã®ããã«ãparseInt ã¯æååãå¼æ°ã«ãããã¨ãåæã«ãã¦ãããããé度ã®é¢ã§ãå¯èªæ§ã®é¢ã§ããå°æ°å¤ãæ´æ°å¤ã«å¤æããããã¨ããå ´åã«ä½¿ãã®ã¯æã¾ããããã¾ãããæãæ
{{#tags}}- {{label}}
{{/tags}}