1.5 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			1.5 KiB
		
	
	
	
	
	
	
	
id, title, challengeType, videoUrl, localeTitle
| id | title | challengeType | videoUrl | localeTitle | 
|---|---|---|---|---|
| cf1391c1c11feddfaeb4bdef | Create Decimal Numbers with JavaScript | 1 | Crea números decimales con JavaScript | 
Description
No todos los números reales se pueden representar con precisión en coma flotante . Esto puede llevar a errores de redondeo. Detalles aquí .
Instructions
myDecimal y myDecimal un valor decimal con una parte fraccionaria (por ejemplo, 5.7 ). Tests
tests:
  - text: <code>myDecimal</code> debe ser un número.
    testString: 'assert(typeof myDecimal === "number", "<code>myDecimal</code> should be a number.");'
  - text: <code>myDecimal</code> debería tener un punto decimal
    testString: 'assert(myDecimal % 1 != 0, "<code>myDecimal</code> should have a decimal point"); '
Challenge Seed
var ourDecimal = 5.7;
// Only change code below this line
After Test
console.info('after the test');
Solution
// solution required