zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

integer_literals.zig (359B) - Raw


      1 const decimal_int = 98222;
      2 const hex_int = 0xff;
      3 const another_hex_int = 0xFF;
      4 const octal_int = 0o755;
      5 const binary_int = 0b11110000;
      6 
      7 // underscores may be placed between two digits as a visual separator
      8 const one_billion = 1_000_000_000;
      9 const binary_mask = 0b1_1111_1111;
     10 const permissions = 0o7_5_5;
     11 const big_address = 0xFF80_0000_0000_0000;
     12 
     13 // syntax