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
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: