Skip to content

Commit 97a7940

Browse files
authored
Editorial: Improve consistency of referring to String values (#667)
Ref tc39/ecma262#2711
1 parent 3a775eb commit 97a7940

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/numberformat.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@ <h1>ToRawPrecision ( _x_, _minPrecision_, _maxPrecision_ )</h1>
10401040
1. Let _int_ be _e_+1.
10411041
1. Else,
10421042
1. Assert: _e_ < 0.
1043-
1. Let _m_ be the string-concatenation of the String value *"0."*, –(_e_+1) occurrences of the character *"0"*, and _m_.
1043+
1. Let _m_ be the string-concatenation of *"0."*, –(_e_+1) occurrences of the character *"0"*, and _m_.
10441044
1. Let _int_ be 1.
10451045
1. If _m_ contains the character *"."*, and _maxPrecision_ > _minPrecision_, then
10461046
1. Let _cut_ be _maxPrecision__minPrecision_.
@@ -1065,7 +1065,7 @@ <h1>ToRawFixed ( _x_, _minInteger_, _minFraction_, _maxFraction_ )</h1>
10651065
1. Let _f_ be _maxFraction_.
10661066
1. Let _n_ be an integer for which the exact mathematical value of _n_ / 10<sup>_f_</sup> – _x_ is as close to zero as possible. If there are two such _n_, pick the larger _n_.
10671067
1. Let _xFinal_ be _n_ / 10<sup>_f_</sup>.
1068-
1. If _n_ = 0, let _m_ be the String *"0"*. Otherwise, let _m_ be the String consisting of the digits of the decimal representation of _n_ (in order, with no leading zeroes).
1068+
1. If _n_ = 0, let _m_ be *"0"*. Otherwise, let _m_ be the String consisting of the digits of the decimal representation of _n_ (in order, with no leading zeroes).
10691069
1. If _f_ ≠ 0, then
10701070
1. Let _k_ be the number of characters in _m_.
10711071
1. If _k__f_, then

0 commit comments

Comments
 (0)