Files
freeCodeCamp/curriculum/challenges/korean/02-javascript-algorithms-and-data-structures/basic-javascript/create-decimal-numbers-with-javascript.md
2024-06-11 19:02:29 +02:00

1.4 KiB

id, title, challengeType, videoUrl, forumTopicId, dashedName
id title challengeType videoUrl forumTopicId dashedName
cf1391c1c11feddfaeb4bdef 자바스크립트에서 소수 생성하기 1 https://scrimba.com/c/ca8GEuW 16826 create-decimal-numbers-with-javascript

--description--

변수에 소수를 저장할 수도 있습니다. 소수는 부동소수점을 가지는 수 또는 float이라고 부를 수도 있습니다.

Note: when you compute numbers, they are computed with finite precision. Operations using floating points may lead to different results than the desired outcome. If you are getting one of these results, open a topic on the freeCodeCamp forum.

--instructions--

변수 myDecimal을 생성해서, 정수 부분과 소수 부분으로 나뉘어진 실수(예를 들면 5.7)을 할당해 주세요.

--hints--

myDecimal은 숫자여야 합니다.

assert(typeof myDecimal === 'number');

myDecimal은 소수점 자리를 가지고 있어야 합니다.

assert(myDecimal % 1 != 0);

--seed--

--after-user-code--

(function(){if(typeof myDecimal !== "undefined"){return myDecimal;}})();

--seed-contents--

const ourDecimal = 5.7;

// Only change code below this line

--solutions--

const myDecimal = 9.9;