Skip to content

Commit 98dbf1d

Browse files
Update abs.adoc
Translate in Italian
1 parent 6248a9d commit 98dbf1d

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

Language/Functions/Math/abs.adoc

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,24 @@ subCategories: [ "Math" ]
1616
--
1717

1818
[float]
19-
=== Description
20-
Calculates the absolute value of a number.
19+
=== Descrizione
20+
Calcola il valore assoluto di un numero.
2121
[%hardbreaks]
2222

2323

2424
[float]
25-
=== Syntax
25+
=== Sintassi
2626
`abs(x)`
2727

2828
[float]
29-
=== Parameters
30-
`x`: the number
29+
=== Parametri
30+
`x`: il numero
3131

3232
[float]
33-
=== Returns
34-
`x`: if x is greater than or equal to 0.
33+
=== Restituisce
34+
`x`: se x se x è maggiore o uguale a 0.
3535

36-
`-x`: if x is less than 0.
36+
`-x`: se x è minore di 0.
3737

3838
--
3939
// OVERVIEW SECTION ENDS
@@ -47,14 +47,14 @@ Calculates the absolute value of a number.
4747

4848

4949
[float]
50-
=== Notes and Warnings
51-
Because of the way the abs() function is implemented, avoid using other functions inside the brackets, it may lead to incorrect results.
50+
=== Note e avvertenze
51+
A causa del modo in cui è implementata la funzione abs(), si consiglia di evitare l'uso di altre funzioni all'interno delle parentesi, che potrebbe condurre a risultati errati.
5252
[source,arduino]
5353
----
54-
abs(a++); // avoid this - yields incorrect results
54+
abs(a++); // evitare questa funzione - produce risultati errati
5555
56-
abs(a); // use this instead -
57-
a++; // keep other math outside the function
56+
abs(a); // usare questa invece -
57+
a++; // lasciate gli altri calcoli al di fuori della funzione
5858
----
5959
[%hardbreaks]
6060

0 commit comments

Comments
 (0)