Skip to content

Commit

Permalink
Se ha agregado el comando **mate.redondear()** y su alias **mate.rnd()**
Browse files Browse the repository at this point in the history
  • Loading branch information
MelvinG24 committed Oct 7, 2020
1 parent 10ef531 commit 2193fc7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/Novedades.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Novedades
* Se ha añadido el comando **mate.tau()**
* Se ha añadido el comando **mate.e()**
* Se ha añadido el comando **mate.trunc()**
* Se ha añadido el comando **mate.redondear()** y su alias **mate.rnd()**
* Se ha añadido los comandos **mate.base()**, **mate.parte()** y **mate.porc()**
* Se ha añadido el comando **archivo.anexar()**
* Se ha añadido un alias al comando **archivo.eliminar()**, y su nuevo alias es **archivo.borrar()**
Expand Down
17 changes: 17 additions & 0 deletions docs/librerias/Matematica.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ La librería **mate** contiene las funciones de **matemáticas** en Latino.
+----------------+------------+-------------------------------------------------------------------------------+
| raiz\( \) | 1 | Devuelve la raíz cuadrada |
+----------------+------------+-------------------------------------------------------------------------------+
| redondear\( \) | 1 | Devuelve el número redondeado |
+----------------+ | |
| rnd\( \) | | |
+----------------+------------+-------------------------------------------------------------------------------+
| sen\( \) | 1 | Devuelve el seno |
+----------------+------------+-------------------------------------------------------------------------------+
| senh\( \) | 1 | Devuelve el seno hiperbólico |
Expand Down Expand Up @@ -405,6 +409,19 @@ Este comando devuelve la **raíz cuadrada** de un número.

----

mate.redondear\( \)
---------------------
Este comando **redondea** el número a su mas cercano entero.

Este comando también dispone de un alias **mate.rnd\( \)**.

.. raw:: html

<pre><code class="language-latino line-numbers">escribir(mate.redondear(5.4)) //Devolverá 5
escribir(mate.rnd(5.6) //Devolverá 6)</code></pre>

----

mate.sen\( \)
--------------
Este comando devuelve el **seno** de un número.
Expand Down

0 comments on commit 2193fc7

Please sign in to comment.