-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
priority:p2Medium priorityMedium priorityscope:compilertype:featureNew feature or requestNew feature or request
Milestone
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
priority:p2Medium priorityMedium priorityscope:compilertype:featureNew feature or requestNew feature or request