From 2a76c37d0e733dedf8ed87d1e7e46caf3c44667e Mon Sep 17 00:00:00 2001 From: SphinxKnight Date: Fri, 30 Jul 2021 20:18:17 +0200 Subject: Prepare JS French section for Markdown (#1574) * Rm IDs w/ [^h\d] id=" * Remove class="hidden" * Remove hidden for code blocks * rm summary classes * Use Note consistently * Remove sup * Rm code in pre * Fixes dd/dt/dl * Fix some more dd * Remove inline style and useless/craft from span/font * h2m report fixing - Consistent use of notes * h2m report fixing - Consistent use of warnings * h2m report fixing - reword one callout * h2m report fixing - array cruft spans hell * Cleaning the rest of docs for md conversion --- .../javascript/reference/global_objects/math/abs/index.html | 2 -- .../javascript/reference/global_objects/math/acos/index.html | 2 -- .../reference/global_objects/math/acosh/index.html | 2 -- .../javascript/reference/global_objects/math/asin/index.html | 2 -- .../reference/global_objects/math/asinh/index.html | 2 -- .../javascript/reference/global_objects/math/atan/index.html | 2 -- .../reference/global_objects/math/atan2/index.html | 2 -- .../reference/global_objects/math/atanh/index.html | 2 -- .../javascript/reference/global_objects/math/cbrt/index.html | 2 -- .../javascript/reference/global_objects/math/ceil/index.html | 2 -- .../reference/global_objects/math/clz32/index.html | 2 -- .../javascript/reference/global_objects/math/cos/index.html | 2 -- .../javascript/reference/global_objects/math/cosh/index.html | 2 +- .../javascript/reference/global_objects/math/e/index.html | 2 +- .../javascript/reference/global_objects/math/exp/index.html | 6 ++---- .../reference/global_objects/math/expm1/index.html | 6 ++---- .../reference/global_objects/math/floor/index.html | 2 -- .../reference/global_objects/math/fround/index.html | 2 -- .../reference/global_objects/math/hypot/index.html | 2 -- .../javascript/reference/global_objects/math/imul/index.html | 2 -- .../web/javascript/reference/global_objects/math/index.html | 12 +++++------- .../javascript/reference/global_objects/math/ln10/index.html | 2 +- .../javascript/reference/global_objects/math/ln2/index.html | 2 +- .../javascript/reference/global_objects/math/log/index.html | 2 -- .../reference/global_objects/math/log10/index.html | 2 -- .../reference/global_objects/math/log10e/index.html | 2 +- .../reference/global_objects/math/log1p/index.html | 2 -- .../javascript/reference/global_objects/math/log2/index.html | 2 -- .../reference/global_objects/math/log2e/index.html | 2 +- .../javascript/reference/global_objects/math/max/index.html | 2 -- .../javascript/reference/global_objects/math/min/index.html | 2 -- .../javascript/reference/global_objects/math/pi/index.html | 2 +- .../javascript/reference/global_objects/math/pow/index.html | 4 +--- .../reference/global_objects/math/random/index.html | 4 ++-- .../reference/global_objects/math/round/index.html | 2 -- .../javascript/reference/global_objects/math/sign/index.html | 2 -- .../javascript/reference/global_objects/math/sin/index.html | 2 -- .../javascript/reference/global_objects/math/sinh/index.html | 4 +--- .../javascript/reference/global_objects/math/sqrt/index.html | 2 -- .../reference/global_objects/math/sqrt1_2/index.html | 2 +- .../reference/global_objects/math/sqrt2/index.html | 2 +- .../javascript/reference/global_objects/math/tan/index.html | 2 -- .../reference/global_objects/math/trunc/index.html | 2 -- 43 files changed, 22 insertions(+), 88 deletions(-) (limited to 'files/fr/web/javascript/reference/global_objects/math') diff --git a/files/fr/web/javascript/reference/global_objects/math/abs/index.html b/files/fr/web/javascript/reference/global_objects/math/abs/index.html index 91dabb81ff..c632d426db 100644 --- a/files/fr/web/javascript/reference/global_objects/math/abs/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/abs/index.html @@ -17,8 +17,6 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/abs
{{EmbedInteractiveExample("pages/js/math-abs.html")}}
- -

Syntaxe

Math.abs(x);
diff --git a/files/fr/web/javascript/reference/global_objects/math/acos/index.html b/files/fr/web/javascript/reference/global_objects/math/acos/index.html index 2a85b6a424..3a2f6fa132 100644 --- a/files/fr/web/javascript/reference/global_objects/math/acos/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/acos/index.html @@ -17,8 +17,6 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/acos
{{EmbedInteractiveExample("pages/js/math-acos.html")}}
- -

Syntaxe

Math.acos(x) 
diff --git a/files/fr/web/javascript/reference/global_objects/math/acosh/index.html b/files/fr/web/javascript/reference/global_objects/math/acosh/index.html index 445e661711..26a4b11b80 100644 --- a/files/fr/web/javascript/reference/global_objects/math/acosh/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/acosh/index.html @@ -18,8 +18,6 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/acosh
{{EmbedInteractiveExample("pages/js/math-acosh.html")}}
- -

Syntaxe

Math.acosh(x)
diff --git a/files/fr/web/javascript/reference/global_objects/math/asin/index.html b/files/fr/web/javascript/reference/global_objects/math/asin/index.html index 30a1493762..b094e1bdce 100644 --- a/files/fr/web/javascript/reference/global_objects/math/asin/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/asin/index.html @@ -17,8 +17,6 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/asin
{{EmbedInteractiveExample("pages/js/math-asin.html")}}
- -

Syntaxe

Math.asin(x)
diff --git a/files/fr/web/javascript/reference/global_objects/math/asinh/index.html b/files/fr/web/javascript/reference/global_objects/math/asinh/index.html index b89ecbbfbe..e831b9abcb 100644 --- a/files/fr/web/javascript/reference/global_objects/math/asinh/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/asinh/index.html @@ -17,8 +17,6 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/asinh
{{EmbedInteractiveExample("pages/js/math-asinh.html")}}
- -

Syntaxe

Math.asinh(x)
diff --git a/files/fr/web/javascript/reference/global_objects/math/atan/index.html b/files/fr/web/javascript/reference/global_objects/math/atan/index.html index e8022105e3..3c6754866d 100644 --- a/files/fr/web/javascript/reference/global_objects/math/atan/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/atan/index.html @@ -17,8 +17,6 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/atan
{{EmbedInteractiveExample("pages/js/math-atan.html")}}
- -

Syntaxe

Math.atan(x)
diff --git a/files/fr/web/javascript/reference/global_objects/math/atan2/index.html b/files/fr/web/javascript/reference/global_objects/math/atan2/index.html index efadc84eb2..4d1c4c29d6 100644 --- a/files/fr/web/javascript/reference/global_objects/math/atan2/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/atan2/index.html @@ -15,8 +15,6 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/atan2
{{EmbedInteractiveExample("pages/js/math-atan2.html")}}
- -

Syntaxe

Math.atan2(y, x) 
diff --git a/files/fr/web/javascript/reference/global_objects/math/atanh/index.html b/files/fr/web/javascript/reference/global_objects/math/atanh/index.html index 356253290a..f159f35630 100644 --- a/files/fr/web/javascript/reference/global_objects/math/atanh/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/atanh/index.html @@ -18,8 +18,6 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/atanh
{{EmbedInteractiveExample("pages/js/math-atanh.html")}}
- -

Syntaxe

Math.atanh(x)
diff --git a/files/fr/web/javascript/reference/global_objects/math/cbrt/index.html b/files/fr/web/javascript/reference/global_objects/math/cbrt/index.html index 8c5a78a699..fb9daa3cc0 100644 --- a/files/fr/web/javascript/reference/global_objects/math/cbrt/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/cbrt/index.html @@ -19,8 +19,6 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/cbrt
{{EmbedInteractiveExample("pages/js/math-cbrt.html")}}
- -

Syntaxe

Math.cbrt(x)
diff --git a/files/fr/web/javascript/reference/global_objects/math/ceil/index.html b/files/fr/web/javascript/reference/global_objects/math/ceil/index.html index 2aaf9f6b8e..93e8919368 100644 --- a/files/fr/web/javascript/reference/global_objects/math/ceil/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/ceil/index.html @@ -15,8 +15,6 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/ceil
{{EmbedInteractiveExample("pages/js/math-ceil.html")}}
- -

Syntaxe

Math.ceil(x) 
diff --git a/files/fr/web/javascript/reference/global_objects/math/clz32/index.html b/files/fr/web/javascript/reference/global_objects/math/clz32/index.html index 5c13941e04..c3298823a6 100644 --- a/files/fr/web/javascript/reference/global_objects/math/clz32/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/clz32/index.html @@ -17,8 +17,6 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/clz32
{{EmbedInteractiveExample("pages/js/math-clz32.html")}}
- -

Syntaxe

Math.clz32(x)
diff --git a/files/fr/web/javascript/reference/global_objects/math/cos/index.html b/files/fr/web/javascript/reference/global_objects/math/cos/index.html
index c1f1552c67..2015708e27 100644
--- a/files/fr/web/javascript/reference/global_objects/math/cos/index.html
+++ b/files/fr/web/javascript/reference/global_objects/math/cos/index.html
@@ -15,8 +15,6 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/cos
 
 
{{EmbedInteractiveExample("pages/js/math-cos.html")}}
- -

Syntaxe

Math.cos(x)
diff --git a/files/fr/web/javascript/reference/global_objects/math/cosh/index.html b/files/fr/web/javascript/reference/global_objects/math/cosh/index.html index 5fe0e8143f..76c7d9fe17 100644 --- a/files/fr/web/javascript/reference/global_objects/math/cosh/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/cosh/index.html @@ -19,7 +19,7 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/cosh
{{EmbedInteractiveExample("pages/js/math-cosh.html")}}
- +

(Voir la page sur {{jsxref("Objets_globaux/Math/E","e","",1)}})

diff --git a/files/fr/web/javascript/reference/global_objects/math/e/index.html b/files/fr/web/javascript/reference/global_objects/math/e/index.html index 912e91adf2..f4df99a2cb 100644 --- a/files/fr/web/javascript/reference/global_objects/math/e/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/e/index.html @@ -17,7 +17,7 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/E
{{EmbedInteractiveExample("pages/js/math-e.html")}}
- +
{{js_property_attributes(0,0,0)}}
diff --git a/files/fr/web/javascript/reference/global_objects/math/exp/index.html b/files/fr/web/javascript/reference/global_objects/math/exp/index.html index 6418d702be..29ac4ef407 100644 --- a/files/fr/web/javascript/reference/global_objects/math/exp/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/exp/index.html @@ -11,12 +11,10 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/exp ---
{{JSRef}}
-

La fonction Math.exp() renvoie l'exponentielle d'un nombre (donnée par ex, où x est la valeur passée en argument et e la valeur du {{jsxref("Objets_globaux/Math/E","nombre d'Euler (parfois appelé constante de Napier)","",1)}}.

+

La fonction Math.exp() renvoie l'exponentielle d'un nombre (donnée par e^x, où x est la valeur passée en argument et e la valeur du {{jsxref("Objets_globaux/Math/E","nombre d'Euler (parfois appelé constante de Napier)","",1)}}.

{{EmbedInteractiveExample("pages/js/math-exp.html")}}
- -

Syntaxe

Math.exp(x)
@@ -32,7 +30,7 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/exp

Valeur de retour

-

L'exponentielle du nombre passé en argument (ex).

+

L'exponentielle du nombre passé en argument (e^x).

Description

diff --git a/files/fr/web/javascript/reference/global_objects/math/expm1/index.html b/files/fr/web/javascript/reference/global_objects/math/expm1/index.html index 713f575452..372880a5df 100644 --- a/files/fr/web/javascript/reference/global_objects/math/expm1/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/expm1/index.html @@ -13,12 +13,10 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/expm1 ---
{{JSRef}}
-

La fonction Math.expm1() renvoie ex - 1, avec x l'argument donné et {{jsxref("Objets_globaux/Math/E","e")}} la base du logarithme nepérien.

+

La fonction Math.expm1() renvoie e^x - 1, avec x l'argument donné et {{jsxref("Objets_globaux/Math/E","e")}} la base du logarithme nepérien.

{{EmbedInteractiveExample("pages/js/math-expm1.html")}}
- -

Syntaxe

Math.expm1(x)
@@ -32,7 +30,7 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/expm1

Valeur de retour

-

Un nombre qui représente ex- 1x est la valeur passée en argument et ex l'exponentielle du nombre.

+

Un nombre qui représente e^x- 1x est la valeur passée en argument et e^x l'exponentielle du nombre.

Description

diff --git a/files/fr/web/javascript/reference/global_objects/math/floor/index.html b/files/fr/web/javascript/reference/global_objects/math/floor/index.html index 2650bbe294..4b9a6e5422 100644 --- a/files/fr/web/javascript/reference/global_objects/math/floor/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/floor/index.html @@ -15,8 +15,6 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/floor
{{EmbedInteractiveExample("pages/js/math-floor.html")}}
- -

Syntaxe

Math.floor(x)
diff --git a/files/fr/web/javascript/reference/global_objects/math/fround/index.html b/files/fr/web/javascript/reference/global_objects/math/fround/index.html index d12368db64..6b5ec47735 100644 --- a/files/fr/web/javascript/reference/global_objects/math/fround/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/fround/index.html @@ -16,8 +16,6 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/fround
{{EmbedInteractiveExample("pages/js/math-fround.html")}}
- -

Syntaxe

Math.fround(x)
diff --git a/files/fr/web/javascript/reference/global_objects/math/hypot/index.html b/files/fr/web/javascript/reference/global_objects/math/hypot/index.html index eca0d63229..bba9aaebe8 100644 --- a/files/fr/web/javascript/reference/global_objects/math/hypot/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/hypot/index.html @@ -19,8 +19,6 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/hypot
{{EmbedInteractiveExample("pages/js/math-hypot.html")}}
- -

Syntaxe

Math.hypot([valeur1[,valeur2, ...]]) 
diff --git a/files/fr/web/javascript/reference/global_objects/math/imul/index.html b/files/fr/web/javascript/reference/global_objects/math/imul/index.html index f4d505f694..bdfb591384 100644 --- a/files/fr/web/javascript/reference/global_objects/math/imul/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/imul/index.html @@ -16,8 +16,6 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/imul
{{EmbedInteractiveExample("pages/js/math-imul.html")}}
- -

Syntaxe

Math.imul(a, b)
diff --git a/files/fr/web/javascript/reference/global_objects/math/index.html b/files/fr/web/javascript/reference/global_objects/math/index.html index 375a2e73e1..86ab1bee47 100644 --- a/files/fr/web/javascript/reference/global_objects/math/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/index.html @@ -12,8 +12,8 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math

L'objet Math est un objet natif dont les méthodes et propriétés permettent l'utilisation de constantes et fonctions mathématiques. Cet objet n'est pas une fonction.

-
-

Attention ! Math fonctionne avec le type {{jsxref("Number")}}. Il ne fonctionne pas avec les grands entiers/{{jsxref("BigInt")}}.

+
+

Attention : Math fonctionne avec le type {{jsxref("Number")}}. Il ne fonctionne pas avec les grands entiers/{{jsxref("BigInt")}}.

Description

@@ -48,11 +48,9 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math

Méthodes

-
Les fonctions trigonométriques (sin(), cos(), tan(), asin(), acos(), atan(), atan2()) acceptent ou retournent des angles en radians.
-Pour convertir des degrés en radians, multipliez la valeur en degrés par (Math.PI / 180).
-Pour passer des radians en degrés, divisez la valeur en radians par (Math.PI / 180).
+

Note : Les fonctions trigonométriques (sin(), cos(), tan(), asin(), acos(), atan(), atan2()) acceptent ou retournent des angles en radians. Pour convertir des degrés en radians, multipliez la valeur en degrés par (Math.PI / 180). Pour passer des radians en degrés, divisez la valeur en radians par (Math.PI / 180).

-
La précision des fonctions mathématiques dépend notamment de l'implémentation. Cela signifie que différents navigateurs peuvent fournir des résultats différents. On peut même avoir un même moteur JavaScript qui, sur des architectures et/ou des systèmes d'exploitation différents, fournit des résultats différents.
+

Note : La précision des fonctions mathématiques dépend notamment de l'implémentation. Cela signifie que différents navigateurs peuvent fournir des résultats différents. On peut même avoir un même moteur JavaScript qui, sur des architectures et/ou des systèmes d'exploitation différents, fournit des résultats différents.

{{jsxref("Objets_globaux/Math/abs", "Math.abs(x)")}}
@@ -82,7 +80,7 @@ Pour passer des radians en degrés, divisez la valeur en radians par (Math
{{jsxref("Objets_globaux/Math/cosh", "Math.cosh(x)")}}
Renvoie le cosinus hyperbolique d'un nombre.
{{jsxref("Objets_globaux/Math/exp", "Math.exp(x)")}}
-
Renvoie l'exponentielle d'un nombre (soit Enombre) avec E la constante d'Euler (2,718...).
+
Renvoie l'exponentielle d'un nombre (soit E^nombre) avec E la constante d'Euler (2,718...).
{{jsxref("Objets_globaux/Math/expm1", "Math.expm1(x)")}}
Renvoie le résultat de 1 moins l'exponentielle d'un nombre.
{{jsxref("Objets_globaux/Math/floor", "Math.floor(x)")}}
diff --git a/files/fr/web/javascript/reference/global_objects/math/ln10/index.html b/files/fr/web/javascript/reference/global_objects/math/ln10/index.html index a4471defbb..f3818a3665 100644 --- a/files/fr/web/javascript/reference/global_objects/math/ln10/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/ln10/index.html @@ -17,7 +17,7 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/LN10
{{EmbedInteractiveExample("pages/js/math-ln10.html")}}
- +
{{js_property_attributes(0,0,0)}}
diff --git a/files/fr/web/javascript/reference/global_objects/math/ln2/index.html b/files/fr/web/javascript/reference/global_objects/math/ln2/index.html index fcc51dd309..0a7fc56029 100644 --- a/files/fr/web/javascript/reference/global_objects/math/ln2/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/ln2/index.html @@ -17,7 +17,7 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/LN2
{{EmbedInteractiveExample("pages/js/math-ln2.html")}}
- +
{{js_property_attributes(0,0,0)}}
diff --git a/files/fr/web/javascript/reference/global_objects/math/log/index.html b/files/fr/web/javascript/reference/global_objects/math/log/index.html index b8761f49e7..25d7a48e8b 100644 --- a/files/fr/web/javascript/reference/global_objects/math/log/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/log/index.html @@ -17,8 +17,6 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/log
{{EmbedInteractiveExample("pages/js/math-log.html")}}
- -

Syntaxe

Math.log(x)
diff --git a/files/fr/web/javascript/reference/global_objects/math/log10/index.html b/files/fr/web/javascript/reference/global_objects/math/log10/index.html index 693166573f..d0e65dca47 100644 --- a/files/fr/web/javascript/reference/global_objects/math/log10/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/log10/index.html @@ -19,8 +19,6 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/log10
{{EmbedInteractiveExample("pages/js/math-log10.html")}}
- -

Syntaxe

Math.log10(x)
diff --git a/files/fr/web/javascript/reference/global_objects/math/log10e/index.html b/files/fr/web/javascript/reference/global_objects/math/log10e/index.html index 21925c6c9d..175018cc26 100644 --- a/files/fr/web/javascript/reference/global_objects/math/log10e/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/log10e/index.html @@ -17,7 +17,7 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/LOG10E
{{EmbedInteractiveExample("pages/js/math-log10e.html")}}
- +
{{js_property_attributes(0,0,0)}}
diff --git a/files/fr/web/javascript/reference/global_objects/math/log1p/index.html b/files/fr/web/javascript/reference/global_objects/math/log1p/index.html index d9dc8af4e3..04913b856c 100644 --- a/files/fr/web/javascript/reference/global_objects/math/log1p/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/log1p/index.html @@ -19,8 +19,6 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/log1p
{{EmbedInteractiveExample("pages/js/math-log1p.html")}}
- -

Syntaxe

Math.log1p(x)
diff --git a/files/fr/web/javascript/reference/global_objects/math/log2/index.html b/files/fr/web/javascript/reference/global_objects/math/log2/index.html index a166785499..c1700ae5c1 100644 --- a/files/fr/web/javascript/reference/global_objects/math/log2/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/log2/index.html @@ -19,8 +19,6 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/log2
{{EmbedInteractiveExample("pages/js/math-log2.html")}}
- -

Syntaxe

Math.log2(x)
diff --git a/files/fr/web/javascript/reference/global_objects/math/log2e/index.html b/files/fr/web/javascript/reference/global_objects/math/log2e/index.html index bd61cc5b2c..ef33a48cf1 100644 --- a/files/fr/web/javascript/reference/global_objects/math/log2e/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/log2e/index.html @@ -17,7 +17,7 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/LOG2E
{{EmbedInteractiveExample("pages/js/math-log2e.html")}}
- +
{{js_property_attributes(0,0,0)}}
diff --git a/files/fr/web/javascript/reference/global_objects/math/max/index.html b/files/fr/web/javascript/reference/global_objects/math/max/index.html index ddf849143d..78e3810bca 100644 --- a/files/fr/web/javascript/reference/global_objects/math/max/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/max/index.html @@ -15,8 +15,6 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/max
{{EmbedInteractiveExample("pages/js/math-max.html")}}
- -

Syntaxe

Math.max([valeur1[,valeur2, ...]]) 
diff --git a/files/fr/web/javascript/reference/global_objects/math/min/index.html b/files/fr/web/javascript/reference/global_objects/math/min/index.html index 3f7a08db2e..39cd2d8567 100644 --- a/files/fr/web/javascript/reference/global_objects/math/min/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/min/index.html @@ -15,8 +15,6 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/min
{{EmbedInteractiveExample("pages/js/math-min.html")}}
- -

Syntaxe

Math.min([valeur1[,valeur2, ...]]) 
diff --git a/files/fr/web/javascript/reference/global_objects/math/pi/index.html b/files/fr/web/javascript/reference/global_objects/math/pi/index.html index a007d1e4b7..d9aa0848db 100644 --- a/files/fr/web/javascript/reference/global_objects/math/pi/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/pi/index.html @@ -17,7 +17,7 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/PI
{{EmbedInteractiveExample("pages/js/math-pi.html")}}
- +
{{js_property_attributes(0,0,0)}}
diff --git a/files/fr/web/javascript/reference/global_objects/math/pow/index.html b/files/fr/web/javascript/reference/global_objects/math/pow/index.html index d982f57687..b12f348e80 100644 --- a/files/fr/web/javascript/reference/global_objects/math/pow/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/pow/index.html @@ -11,12 +11,10 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/pow ---
{{JSRef}}
-

La fonction Math.pow() renvoie un nombre à une certaine puissance, c'est-à-dire baseexposant.

+

La fonction Math.pow() renvoie un nombre à une certaine puissance, c'est-à-dire base^exposant.

{{EmbedInteractiveExample("pages/js/math-pow.html")}}
- -

Syntaxe

Math.pow(base, exposant);
diff --git a/files/fr/web/javascript/reference/global_objects/math/random/index.html b/files/fr/web/javascript/reference/global_objects/math/random/index.html index d39b350ad9..c5b3df93df 100644 --- a/files/fr/web/javascript/reference/global_objects/math/random/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/random/index.html @@ -29,7 +29,7 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/random

Exemples

-

En JavaScript, les nombres sont représentés comme des nombres flottants selon la norme IEEE 754 et les arrondis sont pris aux plus près. Aussi, les intervalles revendiqués par les fonctions ci-après (en dehors de Math.random()) ne sont pas théoriquement et précisément exacts. Si on utilise des bornes supérieures très grande (253 ou plus), il est alors possible, dans de très rares cas, d'obtenir la borne supérieure comme résultat alors que celle-ci devrait être exclue de l'intervalle.

+

En JavaScript, les nombres sont représentés comme des nombres flottants selon la norme IEEE 754 et les arrondis sont pris aux plus près. Aussi, les intervalles revendiqués par les fonctions ci-après (en dehors de Math.random()) ne sont pas théoriquement et précisément exacts. Si on utilise des bornes supérieures très grande (2^53 ou plus), il est alors possible, dans de très rares cas, d'obtenir la borne supérieure comme résultat alors que celle-ci devrait être exclue de l'intervalle.

Obtenir un nombre aléatoire entre 0 et 1

@@ -60,7 +60,7 @@ function getRandomInt(min, max) {
-

Attention ! Utiliser Math.round() entraînerait une distribution non-uniforme et réduirait le caractère aléatoire de la méthode.

+

Attention : Utiliser Math.round() entraînerait une distribution non-uniforme et réduirait le caractère aléatoire de la méthode.

Obtenir un entier aléatoire dans un intervalle fermé

diff --git a/files/fr/web/javascript/reference/global_objects/math/round/index.html b/files/fr/web/javascript/reference/global_objects/math/round/index.html index 783c8f2083..fb671af237 100644 --- a/files/fr/web/javascript/reference/global_objects/math/round/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/round/index.html @@ -15,8 +15,6 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/round
{{EmbedInteractiveExample("pages/js/math-round.html")}}
- -

Syntaxe

Math.round(x)
diff --git a/files/fr/web/javascript/reference/global_objects/math/sign/index.html b/files/fr/web/javascript/reference/global_objects/math/sign/index.html index bdc9492349..c27e808527 100644 --- a/files/fr/web/javascript/reference/global_objects/math/sign/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/sign/index.html @@ -17,8 +17,6 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/sign
{{EmbedInteractiveExample("pages/js/math-sign.html")}}
- -

Syntaxe

Math.sign(x)
diff --git a/files/fr/web/javascript/reference/global_objects/math/sin/index.html b/files/fr/web/javascript/reference/global_objects/math/sin/index.html index cedf86af0f..3f3ea2afe8 100644 --- a/files/fr/web/javascript/reference/global_objects/math/sin/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/sin/index.html @@ -15,8 +15,6 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/sin
{{EmbedInteractiveExample("pages/js/math-sin.html")}}
- -

Syntaxe

Math.sin(x)
diff --git a/files/fr/web/javascript/reference/global_objects/math/sinh/index.html b/files/fr/web/javascript/reference/global_objects/math/sinh/index.html index 612fa5e64e..4edf3a2ad5 100644 --- a/files/fr/web/javascript/reference/global_objects/math/sinh/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/sinh/index.html @@ -19,8 +19,6 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/sinh
{{EmbedInteractiveExample("pages/js/math-sinh.html")}}
- -

Syntaxe

Math.sinh(x)
@@ -49,7 +47,7 @@ Math.sinh(1) // 1.1752011936438014

Si cette fonction n'est pas disponible, elle peut être émulée en utilisant la fonction {{jsxref("Math.exp()")}} :

-
Math.sinh = Math.sinh || function(x){
+
Math.sinh = Math.sinh || function(x){
     return (Math.exp(x) - Math.exp(-x)) / 2;
 };
diff --git a/files/fr/web/javascript/reference/global_objects/math/sqrt/index.html b/files/fr/web/javascript/reference/global_objects/math/sqrt/index.html index 1c1dd15854..6b309e4d01 100644 --- a/files/fr/web/javascript/reference/global_objects/math/sqrt/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/sqrt/index.html @@ -17,8 +17,6 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/sqrt
{{EmbedInteractiveExample("pages/js/math-sqrt.html")}}
- -

Syntaxe

Math.sqrt(x)
diff --git a/files/fr/web/javascript/reference/global_objects/math/sqrt1_2/index.html b/files/fr/web/javascript/reference/global_objects/math/sqrt1_2/index.html index 642b74f064..7a1037786c 100644 --- a/files/fr/web/javascript/reference/global_objects/math/sqrt1_2/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/sqrt1_2/index.html @@ -17,7 +17,7 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/SQRT1_2
{{EmbedInteractiveExample("pages/js/math-sqrt1_2.html")}}
- +
{{js_property_attributes(0,0,0)}}
diff --git a/files/fr/web/javascript/reference/global_objects/math/sqrt2/index.html b/files/fr/web/javascript/reference/global_objects/math/sqrt2/index.html index 46ce3355f3..964c355404 100644 --- a/files/fr/web/javascript/reference/global_objects/math/sqrt2/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/sqrt2/index.html @@ -17,7 +17,7 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/SQRT2
{{EmbedInteractiveExample("pages/js/math-sqrt2.html")}}
- +
{{js_property_attributes(0,0,0)}}
diff --git a/files/fr/web/javascript/reference/global_objects/math/tan/index.html b/files/fr/web/javascript/reference/global_objects/math/tan/index.html index f3972b4a0d..17d938acab 100644 --- a/files/fr/web/javascript/reference/global_objects/math/tan/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/tan/index.html @@ -15,8 +15,6 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/tan
{{EmbedInteractiveExample("pages/js/math-tan.html")}}
- -

Syntaxe

Math.tan(x)
diff --git a/files/fr/web/javascript/reference/global_objects/math/trunc/index.html b/files/fr/web/javascript/reference/global_objects/math/trunc/index.html index ef022aa01a..c78b0cb6ec 100644 --- a/files/fr/web/javascript/reference/global_objects/math/trunc/index.html +++ b/files/fr/web/javascript/reference/global_objects/math/trunc/index.html @@ -19,8 +19,6 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Math/trunc
{{EmbedInteractiveExample("pages/js/math-trunc.html")}}
- -

Syntaxe

Math.trunc(x)
-- cgit v1.2.3-54-g00ecf