Files
freeCodeCamp/curriculum/challenges/espanol/02-javascript-algorithms-and-data-structures/basic-javascript/create-decimal-numbers-with-javascript.md
camperbot 408968f0b9 chore(i18n,learn): processed translations (#47510)
* chore(i18n,learn): processed translations

* Update Ukrainian file to match state on crowdin

Co-authored-by: Ilenia <nethleen@gmail.com>
2022-09-14 18:30:37 +02:00

1.3 KiB

id, title, challengeType, videoUrl, forumTopicId, dashedName
id title challengeType videoUrl forumTopicId dashedName
cf1391c1c11feddfaeb4bdef Crea números decimales con JavaScript 1 https://scrimba.com/c/ca8GEuW 16826 create-decimal-numbers-with-javascript

--description--

También podemos almacenar números decimales en variables. Los números decimales a veces se denominan números de coma flotante o flotantes.

Nota: cuando calculas números, se calculan con precisión finita. Las operaciones con puntos flotantes pueden producir resultados diferentes a los deseados. Si obtiene uno de estos resultados, abra un tema en el foro de freeCodeCamp.

--instructions--

Crea una variable myDecimal y dale un valor decimal con una parte fraccional (por ejemplo, 5.7).

--hints--

myDecimal debe ser un número.

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

myDecimal debe tener un punto decimal

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;