Skip to content

Buggy neg int dump in not dec style #399

Closed
@puzrin

Description

@puzrin

represent: {
binary: function (object) { return '0b' + object.toString(2); },
octal: function (object) { return '0' + object.toString(8); },
decimal: function (object) { return object.toString(10); },
hexadecimal: function (object) { return '0x' + object.toString(16).toUpperCase(); }
},

  • now: -10 -> 0b-1010
  • should be: -10 -> -0b1010

The same for octal & hex.

Reference: #398 (comment)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions