mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +00:00
Everywhere: Fix spelling mistakes
This commit is contained in:
parent
168063819d
commit
10ec98dd38
56 changed files with 90 additions and 90 deletions
|
@ -1589,7 +1589,7 @@ int compute_exponent(NumberFormat& number_format, double number)
|
|||
int magnitude = log10floor(number);
|
||||
|
||||
// 4. Let exponent be ComputeExponentForMagnitude(numberFormat, magnitude).
|
||||
int exponent = compute_exponent_for_magniude(number_format, magnitude);
|
||||
int exponent = compute_exponent_for_magnitude(number_format, magnitude);
|
||||
|
||||
// 5. Let x be x × 10^(-exponent).
|
||||
number *= pow(10, -exponent);
|
||||
|
@ -1613,11 +1613,11 @@ int compute_exponent(NumberFormat& number_format, double number)
|
|||
}
|
||||
|
||||
// 10. Return ComputeExponentForMagnitude(numberFormat, magnitude + 1).
|
||||
return compute_exponent_for_magniude(number_format, magnitude + 1);
|
||||
return compute_exponent_for_magnitude(number_format, magnitude + 1);
|
||||
}
|
||||
|
||||
// 15.1.17 ComputeExponentForMagnitude ( numberFormat, magnitude ), https://tc39.es/ecma402/#sec-computeexponentformagnitude
|
||||
int compute_exponent_for_magniude(NumberFormat& number_format, int magnitude)
|
||||
int compute_exponent_for_magnitude(NumberFormat& number_format, int magnitude)
|
||||
{
|
||||
// 1. Let notation be numberFormat.[[Notation]].
|
||||
switch (number_format.notation()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue