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
Copy file name to clipboardExpand all lines: doc/spec.adoc
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -303,8 +303,8 @@ fragment EXP
303
303
304
304
Number literals follow the same syntax rules as numeric values in JSON with three exceptions:
305
305
306
-
1. Number literals may omit a leading zero. For example, `.123` is not valid JSON, but is allowed as a number literal.
307
-
2. Number literals may include a leading zero. For example, `0123` is not valid JSON, but is allowed as a number literal.
306
+
1. Number literals may omit a leading zero before the decimal point. For example, `.123` is not valid JSON, but is allowed as a number literal.
307
+
2. Number literals may include leading zeros ahead of the integral part of the number. For example, `0123` is not valid JSON, but is allowed as a number literal.
308
308
3. The grammar construction for a number literal does not include a minus sign. Literal expressions are made negative by prefixing them with a unary minus.
309
309
310
310
Note that number literals (and JSON numbers) allow scientific notation.
0 commit comments