msgid "" msgstr "" "Project-Id-Version:Tecno Recursos 2023" "Report-Msgid-Bugs-To:" "POT-Creation-Date:2023-02-07 18:33+0100" "PO-Revision-Date:YEAR-MO-DA HO:MI+ZONE" "Last-Translator:FULL NAME " "Language:en" "Language-Team:en " "Plural-Forms:nplurals=2; plural=(n != 1)" "MIME-Version:1.0" "Content-Type:text/plain; charset=utf-8" "Content-Transfer-Encoding:8bit" "Generated-By:Babel 2.9.0" #: ../../es/python-datos-numeros.rst:9 msgid "Datos numéricos" msgstr "Numerical data" #: ../../es/python-datos-numeros.rst:10 msgid "" "En Python, existen diferentes tipos de datos numéricos que se pueden " "utilizar para almacenar y trabajar con números. Los principales tipos de " "datos numéricos son los enteros (int), los números de punto flotante (float)" " y los números complejos (complex), que por ahora no vamos a tratar." msgstr "" "In Python, there are different numeric data types that can be used to store " "and work with numbers. The main types of numeric data are integers (int), " "floating point numbers (float) and complex numbers (complex), which we will " "not cover for now." #: ../../es/python-datos-numeros.rst:15 msgid "" "Los **enteros** son números enteros, positivos o negativos sin decimales. " "Por ejemplo, 1, -2 y 100 son números enteros." msgstr "" "**Integers** are whole numbers, positive or negative with no decimal places." " For example, 1, -2, and 100 are whole numbers." #: ../../es/python-datos-numeros.rst:18 msgid "" "Los números de **punto flotante** son números con decimales. Por ejemplo, " "1.5, 3.14 y -0.75 son números de punto flotante." msgstr "" "**Floating point** numbers are numbers with decimal places. For example, " "1.5, 3.14, and -0.75 are floating point numbers." #: ../../es/python-datos-numeros.rst:22 msgid "" "En Python los decimales se separan con un punto. En español no es la forma " "correcta de separar los decimales, porque se debe utilizar la coma, pero los" " decimales en Python no se traducen a la forma española porque esto daría " "lugar a errores a la hora de programar el mismo código en distintos países." msgstr "" "In Python, decimals are separated by a period. In Spanish it is not the " "correct way to separate the decimals, because the comma must be used, but " "the decimals in Python are not translated to the Spanish form because this " "would lead to errors when programming the same code in different countries." #: ../../es/python-datos-numeros.rst:28 msgid "" "En Python es fácil trabajar con estos tipos de datos numéricos utilizando " "operadores matemáticos comunes como la suma, la resta, la multiplicación, la" " división o la potencia. También es posible realizar operaciones más " "avanzadas como el cálculo del módulo, redondeo, truncamiento, funciones " "trigonométricas, etc. utilizando funciones especiales." msgstr "" "It's easy to work with these numeric data types in Python using common math " "operators like addition, subtraction, multiplication, division, or power. It" " is also possible to perform more advanced operations such as modulus " "calculation, rounding, truncation, trigonometric functions, etc. using " "special functions." #: ../../es/python-datos-numeros.rst:37 msgid "Operaciones con números enteros" msgstr "Operations with integers" #: ../../es/python-datos-numeros.rst:38 msgid "" "Los números enteros son números sin decimales. Las operaciones básicas que " "se pueden aplicar a los números enteros son las siguientes:" msgstr "" "Integers are numbers without decimals. The basic operations that can be " "applied to integers are the following:" #: ../../es/python-datos-numeros.rst:45 ../../es/python-datos-numeros.rst:117 msgid "Símbolo" msgstr "Symbol" #: ../../es/python-datos-numeros.rst:46 ../../es/python-datos-numeros.rst:118 msgid "Operación" msgstr "Operation" #: ../../es/python-datos-numeros.rst:47 ../../es/python-datos-numeros.rst:119 msgid "``+``" msgstr "``+``" #: ../../es/python-datos-numeros.rst:48 ../../es/python-datos-numeros.rst:120 msgid "Suma" msgstr "Addition" #: ../../es/python-datos-numeros.rst:49 ../../es/python-datos-numeros.rst:121 msgid "``-``" msgstr "``-``" #: ../../es/python-datos-numeros.rst:50 ../../es/python-datos-numeros.rst:122 msgid "Resta" msgstr "Subtraction" #: ../../es/python-datos-numeros.rst:51 ../../es/python-datos-numeros.rst:123 msgid "``*``" msgstr "``*``" #: ../../es/python-datos-numeros.rst:52 ../../es/python-datos-numeros.rst:124 msgid "Multiplicación" msgstr "Multiplication" #: ../../es/python-datos-numeros.rst:53 msgid "``//``" msgstr "``//``" #: ../../es/python-datos-numeros.rst:54 msgid "División entera (sin calcular decimales)" msgstr "Integer division (without calculating decimals)" #: ../../es/python-datos-numeros.rst:55 ../../es/python-datos-numeros.rst:127 msgid "``%``" msgstr "``%``" #: ../../es/python-datos-numeros.rst:56 ../../es/python-datos-numeros.rst:128 msgid "Resto de una división" msgstr "Remainder of a division" #: ../../es/python-datos-numeros.rst:57 ../../es/python-datos-numeros.rst:129 msgid "``**``" msgstr "``**``" #: ../../es/python-datos-numeros.rst:58 ../../es/python-datos-numeros.rst:130 msgid "Potencia (elevado a un número)" msgstr "Power (raised to a number)" #: ../../es/python-datos-numeros.rst:60 ../../es/python-datos-numeros.rst:134 msgid "" "Copia los siguientes ejemplos en el entorno IDLE para comprobar que " "funcionan correctamente:" msgstr "" "Copy the following examples into the IDLE environment to verify that they " "work correctly:" #: ../../es/python-datos-numeros.rst:76 msgid "" "Los números enteros en Python pueden ser muy grandes y tener muchísimas " "cifras de precisión:" msgstr "" "Integers in Python can be very large and have many, many digits of " "precision:" #: ../../es/python-datos-numeros.rst:100 msgid "Operaciones con números en coma flotante" msgstr "Operations with floating point numbers" #: ../../es/python-datos-numeros.rst:101 msgid "Los números en coma flotante son números con decimales." msgstr "Floating point numbers are numbers with decimal places." #: ../../es/python-datos-numeros.rst:103 msgid "" "Los números enteros también se pueden almacenar como números en coma " "flotante, pero en este caso pierden la gran precisión que tienen los números" " enteros para almacenar solo 16 cifras de precisión y números hasta 10^307 " "de máximo tamaño. El número entero 2 en coma flotante se verá como 2.0, con " "un cero añadido después de la coma decimal." msgstr "" "Integers can also be stored as floating point numbers, but in this case they" " lose the high precision of integers to store only 16 digits of precision " "and numbers up to 10^307 in maximum size. The floating point integer 2 will " "look like 2.0, with a zero added after the decimal point." #: ../../es/python-datos-numeros.rst:110 msgid "" "Las operaciones básicas que se pueden aplicar a los números en coma flotante" " son las siguientes:" msgstr "" "The basic operations that can be applied to floating point numbers are the " "following:" #: ../../es/python-datos-numeros.rst:125 msgid "``/``" msgstr "``/``" #: ../../es/python-datos-numeros.rst:126 msgid "División con decimales" msgstr "Division with decimals" #: ../../es/python-datos-numeros.rst:131 msgid "``round(number, digits)``" msgstr "``round(number, digits)``" #: ../../es/python-datos-numeros.rst:132 msgid "Redondea un número en coma flotante a digits decimales." msgstr "Rounds a floating point number to decimal digits." #: ../../es/python-datos-numeros.rst:154 msgid "Errores decimales en coma flotante" msgstr "Floating point decimal errors" #: ../../es/python-datos-numeros.rst:155 msgid "" "Los números en coma flotante se almacenan dentro del ordenador como números " "binarios, no como números decimales. A la hora de representar el número en " "la pantalla se convierte el número binario en decimal. Esto hace que se " "produzcan errores a la hora de almacenar y de realizar cálculos con " "decimales. Un ejemplo práctico es la siguiente suma:" msgstr "" "Floating point numbers are stored within the computer as binary numbers, not" " decimal numbers. When representing the number on the screen, the binary " "number is converted into decimal. This causes errors to occur when storing " "and performing calculations with decimals. A practical example is the " "following sum:" #: ../../es/python-datos-numeros.rst:170 msgid "" "Los números decimales se almacenan con un pequeño error que no es visible al" " mostrarlos en la pantalla, sin embargo la suma de los dos números decimales" " da como resultado un número con un pequeño error que sí es visible en el " "decimal número 17." msgstr "" "Decimal numbers are stored with a small error that is not visible when " "displayed on the screen, however the sum of the two decimal numbers results " "in a number with a small error that is visible in decimal number 17." #: ../../es/python-datos-numeros.rst:175 msgid "" "Estos errores de redondeo se producen solo con la parte decimal de los " "números en coma flotante y no se producen con los números enteros, aunque " "estos se almacenen en formato de coma flotante:" msgstr "" "These rounding errors occur only with the decimal part of floating-point " "numbers and do not occur with whole numbers, even if they are stored in " "floating-point format:" #: ../../es/python-datos-numeros.rst:186 msgid "Conversión de tipos" msgstr "Type conversion" #: ../../es/python-datos-numeros.rst:187 msgid "" "Hay varios casos en los que se pueden convertir los tipos de datos de " "números enteros a coma flotante o viceversa." msgstr "" "There are several cases in which you can convert data types from integers to" " floating point or vice versa." #: ../../es/python-datos-numeros.rst:198 msgid "División de dos números enteros" msgstr "Division of two integers" #: ../../es/python-datos-numeros.rst:191 msgid "" "La operación división con decimales ``/`` aplicada a números enteros puede " "dar como resultado un número con decimales, que se almacenará como un número" " en coma flotante." msgstr "" "The division with decimals operation ``/`` applied to integers can result in" " a number with decimals, which will be stored as a floating point number." #: ../../es/python-datos-numeros.rst:210 msgid "Operaciones mixtas entre enteros y flotantes" msgstr "Mixed operations between integers and floats" #: ../../es/python-datos-numeros.rst:201 msgid "" "Una operación cualquiera entre un número entero y un número en coma flotante" " dará como resultado un número en coma flotante." msgstr "" "Any operation between an integer number and a floating point number will " "result in a floating point number." #: ../../es/python-datos-numeros.rst:227 msgid "Forzar la conversión de tipos" msgstr "Force type conversion" #: ../../es/python-datos-numeros.rst:213 msgid "" "Se puede forzar que un número se convierta de un tipo a otro tipo con las " "siguientes funciones:" msgstr "" "You can force a number to be converted from one type to another type with " "the following functions:" #: ../../es/python-datos-numeros.rst:216 msgid "``int(n)`` Convierte el número n en un número entero" msgstr "``int(n)`` Converts the number n to an integer" #: ../../es/python-datos-numeros.rst:217 msgid "``float(n)`` Convierte el número n en un número en coma flotante" msgstr "``float(n)`` Converts the number n to a floating point number" #: ../../es/python-datos-numeros.rst:219 msgid "Ejemplos de conversiones (también llamadas cast):" msgstr "Examples of conversions (also called cast):" #: ../../es/python-datos-numeros.rst:230 msgid "Otras operaciones matemáticas" msgstr "Other mathematical operations" #: ../../es/python-datos-numeros.rst:231 msgid "" "Para realizar más operaciones matemáticas con números enteros o con números " "en coma flotante, es necesario importar la librería `math " "`__ que da acceso a multitud" " de operaciones matemáticas avanzadas." msgstr "" "To perform more mathematical operations with integers or floating point " "numbers, it is necessary to import the `math " "`__ library which gives " "access to a multitude of advanced mathematical operations." #: ../../es/python-datos-numeros.rst:236 msgid "Algunos ejemplos son los siguientes:" msgstr "Some examples are the following:" #: ../../es/python-datos-numeros.rst:244 msgid "" "La palabra clave ``import`` se utiliza para importar una librería de Python," " que dará acceso a muchas funciones extras. En este ejemplo se ha utilizado " "la función ``math.gcd()`` que devuelve el máximo común divisor (greatest " "common divisor) de varios números." msgstr "" "The ``import`` keyword is used to import a Python library, which will give " "access to many extra functions. In this example we have used the function " "``math.gcd()`` which returns the greatest common divisor of several numbers." #: ../../es/python-datos-numeros.rst:249 msgid "" "Se pueden ver todas las funciones de la librería ``math`` en la " "`documentación oficial del lenguaje Python " "`__." msgstr "" "You can see all the functions of the ``math`` library in the `official " "Python language documentation " "`__."