···66# The path to the directory where all generated files will be written to. This
77# can be an absolute path starting with a slash, but it can also be path
88# relative to the site directory.
99-output_dir: output
99+output_dir: ../output
10101111# A list of index filenames, i.e. names of files that will be served by a web
1212# server when a directory is requested. Usually, index files are named
+14-15
content/index.html
···11---
22-title: What Every Programmer Should Know About Floating-Point Arithmetic
33-description: Aims to provide both short and simple answers to the common recurring questions of novice programmers about floating-point numbers not 'adding up' correctly, and more in-depth information about how IEEE 754 floats work, when and how to use them correctly, and what to use instead when they are not appropriate.
44-verification: SoYmbsJEmSz2s1LmZk_cku4pKwhRsU6m0ZOTgGdnTL0
22+title: Lo Que Todo Programador Debería Saber Sobre Aritmética de Coma Flotante
33+description: Pretende dar respuestas cortas y sencillas a las preguntas recurrentes de programadores principiantes sobre números de coma flotante que «no se suman» correctamente, e información más detallada sobre cómo funcionan los números decimales del IEEE 754, cuándo y cómo usarlos correctamente, y qué usar en su lugar cuando no son apropiados.
54---
6577-or
88---
66+o
77+-
981010-Why don't my numbers add up?
1111-============================
99+¿Por qué mis números no se suman bien?
1010+======================================
12111313-So you've written some absurdly simple code, say for example:
1212+O sea que has escrito algún código absurdamente simple, como por ejemplo:
14131514 0.1 + 0.2
16151717-and got a really unexpected result:
1616+y has obtenido un resultado totalmente inesperado:
18171918 0.30000000000000004
20192121-Maybe you asked for help on some forum and got pointed to a [long article with lots of formulas](http://download.oracle.com/docs/cd/E19957-01/806-3568/ncg_goldberg.html) that didn't seem to help with your problem.
2020+Tal vez pediste ayuda en algún foro y te mandaron a un [artículo largo con un montón de fórmulas](http://download.oracle.com/docs/cd/E19957-01/806-3568/ncg_goldberg.html) que no parecía ser de ayuda.
22212323-Well, this site is here to:
2222+Bueno, este sitio está aquí para:
24232525-* Explain concisely why you get that unexpected result
2626-* Tell you how to deal with this problem
2727-* If you're interested, provide in-depth explanations of why floating-point numbers have to work like that and what other problems can arise
2424+* Explicar de manera concisa por qué obtuviste ese resultado inesperado
2525+* Decirte cómo lidiar con este problema
2626+* Si te interesa, dar explicaciones detalladas de por qué los números de coma flotante tienen que funcionar así y qué otros problemas pueden surgir
28272929-You should look at the [Basic Answers](/basic/) first - but don't stop there!2828+Deberías ir a la sección de [Respuestas Básicas](/basic/) primero - ¡pero no termines ahí!