Lo que todo programador debería saber sobre aritmética de punto flotante
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Traducidos menú de inicio y página principal

+34 -35
+1 -1
config.yaml
··· 6 6 # The path to the directory where all generated files will be written to. This 7 7 # can be an absolute path starting with a slash, but it can also be path 8 8 # relative to the site directory. 9 - output_dir: output 9 + output_dir: ../output 10 10 11 11 # A list of index filenames, i.e. names of files that will be served by a web 12 12 # server when a directory is requested. Usually, index files are named
+14 -15
content/index.html
··· 1 1 --- 2 - title: What Every Programmer Should Know About Floating-Point Arithmetic 3 - 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. 4 - verification: SoYmbsJEmSz2s1LmZk_cku4pKwhRsU6m0ZOTgGdnTL0 2 + title: Lo Que Todo Programador Debería Saber Sobre Aritmética de Coma Flotante 3 + 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. 5 4 --- 6 5 7 - or 8 - -- 6 + o 7 + - 9 8 10 - Why don't my numbers add up? 11 - ============================ 9 + ¿Por qué mis números no se suman bien? 10 + ====================================== 12 11 13 - So you've written some absurdly simple code, say for example: 12 + O sea que has escrito algún código absurdamente simple, como por ejemplo: 14 13 15 14 0.1 + 0.2 16 15 17 - and got a really unexpected result: 16 + y has obtenido un resultado totalmente inesperado: 18 17 19 18 0.30000000000000004 20 19 21 - 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. 20 + 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. 22 21 23 - Well, this site is here to: 22 + Bueno, este sitio está aquí para: 24 23 25 - * Explain concisely why you get that unexpected result 26 - * Tell you how to deal with this problem 27 - * If you're interested, provide in-depth explanations of why floating-point numbers have to work like that and what other problems can arise 24 + * Explicar de manera concisa por qué obtuviste ese resultado inesperado 25 + * Decirte cómo lidiar con este problema 26 + * 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 28 27 29 - You should look at the [Basic Answers](/basic/) first - but don't stop there! 28 + Deberías ir a la sección de [Respuestas Básicas](/basic/) primero - ¡pero no termines ahí!
+19 -19
layouts/default.html
··· 1 1 <!DOCTYPE HTML> 2 - <html lang="en"> 2 + <html lang="es"> 3 3 <head> 4 4 <meta charset="utf-8"> 5 - <title>The Floating-Point Guide - <%= @item[:title] %></title> 5 + <title>La Guía de la Coma Flotante - <%= @item[:title] %></title> 6 6 <% if @item[:verification] %> 7 7 <meta name="google-site-verification" content="SoYmbsJEmSz2s1LmZk_cku4pKwhRsU6m0ZOTgGdnTL0" /> 8 8 <% end %> ··· 19 19 <h1><%= @item[:title] %></h1> 20 20 <%= yield %> 21 21 22 - <g:plusone href="http://floating-point-gui.de"></g:plusone> 22 + <g:plusone href="http://juanlu001.github.com/comaflotante/"></g:plusone> 23 23 <div id="license"> 24 - <p>&copy; Published at <a href="http://floating-point-gui.de/">floating-point-gui.de</a> under the 24 + <p>&copy; Publicado en <a href="http://juanlu001.github.com/comaflotante/">http://juanlu001.github.com/comaflotante/</a> bajo la 25 25 <a href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution License (BY)</a></p> 26 26 </div> 27 27 </div> 28 28 <div id="sidebar"> 29 29 <img src="/logo.png"> 30 - <h2>The Floating-Point Guide</h2> 30 + <h2>La Guía de la Coma Flotante</h2> 31 31 <ul> 32 - <li><a href="/">Home</a></li> 33 - <li><a href="/basic/">Basic Answers</a></li> 34 - <li><a href="/references/">References</a></li> 32 + <li><a href="/">Inicio</a></li> 33 + <li><a href="/basic/">Respuestas Básicas</a></li> 34 + <li><a href="/references/">Referencias</a></li> 35 35 <li><a href="/xkcd/">xkcd</a></li> 36 36 </ul> 37 37 38 - <h2>Number Formats</h2> 38 + <h2>Formatos Numéricos</h2> 39 39 <ul> 40 - <li><a href="/formats/binary/">Binary Fractions</a></li> 41 - <li><a href="/formats/fp/">Floating-Point</a></li> 42 - <li><a href="/formats/exact/">Exact Types</a></li> 43 - <li><a href="/formats/integer/">On Using Integers</a></li> 40 + <li><a href="/formats/binary/">Fracciones Binarias</a></li> 41 + <li><a href="/formats/fp/">Coma Flotante</a></li> 42 + <li><a href="/formats/exact/">Tipos Exactos</a></li> 43 + <li><a href="/formats/integer/">Sobre Usar Enteros</a></li> 44 44 </ul> 45 45 46 - <h2>Errors</h2> 46 + <h2>Errores</h2> 47 47 <ul> 48 - <li><a href="/errors/rounding/">Rounding</a></li> 49 - <li><a href="/errors/comparison/">Comparison</a></li> 50 - <li><a href="/errors/propagation/">Propagation</a></li> 48 + <li><a href="/errors/rounding/">Redondeo</a></li> 49 + <li><a href="/errors/comparison/">Comparación</a></li> 50 + <li><a href="/errors/propagation/">Propagación</a></li> 51 51 </ul> 52 52 53 - <h2>Language<br>cheat sheets</h2> 53 + <h2>Cheat sheets</h2> 54 54 <ul> 55 55 <li><a href="/languages/csharp/">C#</a></li> 56 56 <li><a href="/languages/java/">Java</a></li> ··· 61 61 <li><a href="/languages/sql/">SQL</a></li> 62 62 </ul> 63 63 </div> 64 - <a href="http://github.com/brazzy/floating-point-gui.de"><img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_white_ffffff.png" alt="Fork me on GitHub" /></a> 64 + <a href="http://github.com/Juanlu001/comaflotante"><img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_white_ffffff.png" alt="Fork me on GitHub" /></a> 65 65 66 66 </body> 67 67 </html>