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
<dd>It ensures that a decimal digit string adheres to a restricted syntax in which there are no redundant leading zeroes, no leading or trailing decimal points, and ensures that any *"E"* (indicating exponential notation) is downcased.</dd>
85
+
</dl>
86
+
<emu-alg>
87
+
1. If _s_ contains an occurrence of *"E"*, then
88
+
1. Let _beforeE_ be the substring of _s_ before the first occurrence of *"E"*.
89
+
1. Let _afterE_ be the substring of _s_ after the first occurrence of *"E"*.
90
+
1. Set _s_ to the string concatenation of _beforeE, *"e"*, and _afterE_.
91
+
1. If _s_ contains an occurrence of *"e"*, then
92
+
1. Let _beforeE_ be the substring of _s_ before the first occurrence of *"e"*.
93
+
1. Let _afterE_ be the substring of _s_ after the first occurrence of *"E"*.
94
+
1. Let _canonicalizedBeforeE_ be CanonicalizeDigitString(_beforeE_).
95
+
1. Let _canonicalizedAfterE_ be CanonicalizeDigitString(_afterE_).
96
+
1. Return the string concatenation of _canonicalizedBeforeE_, *"e"*, and _canonicalizedAfterE_.
97
+
1. If _s_ begins with an occurrence of *"00"*, then
98
+
1. Let _afterDoubleZero_ be the substring of _s_ after the first occurrence of *"00"*.
99
+
1. Let _oneFewerZero_ be the string concatenation of *"0"* and _afterDoubleZero_.
0 commit comments