Skip to content

Numeric representation (binary & octal & grouping digits) #40

@tats-u

Description

@tats-u

I hope JSON5 supports these numeric representations supported by ES6 or ES2021.

  • Binary: ES6
  • Octal with 0o: ES6
    • Suitable for permissions
  • Grouping digits: ES2021
> node
Welcome to Node.js v14.15.4.
Type ".help" for more information.
> 0o755
493
> 0b0100_0000
64
> 1_000_000
1000000

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions