Skip to content

Commit ae89677

Browse files
committed
FR translation: translate file
1 parent 1a726cc commit ae89677

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

docs/playground/fr/3-7/Fixits/Big number literals.ts

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,34 @@
11
//// { compiler: { target: 99 }, order: 1 }
22

3-
// Did you know there is a limit to how big of a number you
4-
// can represent in JavaScript when writing ?
3+
// Saviez vous qu'il existe une limite à la taille des nombres qu'il est possible
4+
// de représenter en JavaScript ?
55

66
const maxHighValue = 9007199254740991;
77
const maxLowValue = -9007199254740991;
88

9-
// If you go one over/below these numbers
10-
// then you start to get into dangerous territory.
9+
// Si vous augmentez / diminuez d'une unité ces nombres vous commencez a courir un
10+
// risque.
1111

1212
const oneOverMax = 9007199254740992;
1313
const oneBelowMin = -9007199254740992;
1414

15-
// The solution for handling numbers of this size
16-
// is to convert these numbers to BigInts instead
17-
// of a number:
15+
// La solution pour manipuler des nombres de cette taille est de les convertir en
16+
// BigInts:
1817
//
19-
// https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/BigInt
18+
// https://developer.mozilla.org/fr/docs/orphaned/Web/JavaScript/Reference/Global_Objects/BigInt
2019

21-
// TypeScript will now offer a fixit for number
22-
// literals which are above 2^52 (positive / negative)
23-
// which adds the suffix "n" which informs JavaScript
24-
// that the type should be BigInt.
20+
// TypeScript désormais propose une correction automatique, pour des nombres
21+
// supérieurs à 2^52 (positif / negatif).
22+
// Cette correction automatique ajoute le suffixe "n", ce qui informe JavaScript
23+
// que le type doit être BigInt.
2524

26-
// Number literals
25+
// Nombres
2726
9007199254740993;
2827
-9007199254740993;
2928
9007199254740994;
3029
-9007199254740994;
3130

32-
// Hex numbers
31+
// Nombres hexadécimaux
3332
0x19999999999999;
3433
-0x19999999999999;
3534
0x20000000000000;

0 commit comments

Comments
 (0)