You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Language/Functions/Math/abs.adoc
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -16,24 +16,24 @@ subCategories: [ "Math" ]
16
16
--
17
17
18
18
[float]
19
-
=== Description
20
-
Calculates the absolute value of a number.
19
+
=== Descrizione
20
+
Calcola il valore assoluto di un numero.
21
21
[%hardbreaks]
22
22
23
23
24
24
[float]
25
-
=== Syntax
25
+
=== Sintassi
26
26
`abs(x)`
27
27
28
28
[float]
29
-
=== Parameters
30
-
`x`: the number
29
+
=== Parametri
30
+
`x`: il numero
31
31
32
32
[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.
35
35
36
-
`-x`: if x is less than 0.
36
+
`-x`: se x è minore di 0.
37
37
38
38
--
39
39
// OVERVIEW SECTION ENDS
@@ -47,14 +47,14 @@ Calculates the absolute value of a number.
47
47
48
48
49
49
[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.
52
52
[source,arduino]
53
53
----
54
-
abs(a++); // avoid this - yields incorrect results
54
+
abs(a++); // evitare questa funzione - produce risultati errati
55
55
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
0 commit comments