From 3e2e159cc63ce2b56aacbb8df2b79226ea57c302 Mon Sep 17 00:00:00 2001 From: Giacomo Alessandroni Date: Thu, 6 Oct 2022 16:46:44 +0200 Subject: [PATCH] Translate into Italian abs() --- Language/Functions/Math/abs.adoc | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/Language/Functions/Math/abs.adoc b/Language/Functions/Math/abs.adoc index 6029437..e76c468 100644 --- a/Language/Functions/Math/abs.adoc +++ b/Language/Functions/Math/abs.adoc @@ -16,24 +16,23 @@ subCategories: [ "Math" ] -- [float] -=== Description -Calculates the absolute value of a number. +=== Descrizione +Calcola il valore assoluto di un numero. [%hardbreaks] - [float] -=== Syntax +=== Sintassi `abs(x)` [float] -=== Parameters -`x`: the number +=== Parametri +`x`: il numero [float] -=== Returns -`x`: if x is greater than or equal to 0. +=== Restituisce +`x`: se x è maggiore o uguale a 0. -`-x`: if x is less than 0. +`-x`: se x è minore di 0. -- // OVERVIEW SECTION ENDS @@ -45,19 +44,18 @@ Calculates the absolute value of a number. [#howtouse] -- - [float] -=== Notes and Warnings -Because of the way the abs() function is implemented, avoid using other functions inside the brackets, it may lead to incorrect results. +=== Note e Avvertimenti +A causa del modo in cui la funzione abs() è implementata, evitate di utilizzare altre funzioni all'interno delle parentesi, potrebbe generare risultati errati. + [source,arduino] ---- -abs(a++); // avoid this - yields incorrect results +abs(a++); // evita di farlo: produce risultati errati -abs(a); // use this instead - -a++; // keep other math outside the function +abs(a); // usa questo invece - +a++; // lascia gli altri calcoli al di fuori della funzione ---- [%hardbreaks] - -- // HOW TO USE SECTION ENDS