Skip to content

Binary Number support #31

@x87

Description

@x87

Currently Sanny supports decimal numbers (both whole integers and floating-point number) and hexadecimal numbers.

-1, 0, 1, 1.0, 0.0. -1.0 - decimal
0x0, 0x100, 0xFF - hexadecimal

In some cases it's useful to represent a number in binary form (as a sequence of zeros and ones). E.g. bitmask values. In other programming languages it's common to see such representation with the prefix 0b and zeros and ones following:

0b0, 0b010100

This format should be the first-class citizen and supported anywhere a number is allowed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions