number-literals.txt 351 B

123456
  1. /* digit separators */
  2. int number = 2'555'555'555; // digit separators
  3. float exponentFloat = .123'456e3'000; // digit separators in floats
  4. float suffixed = 3.000'001'234f // digit separators in suffixed numbers
  5. char word[] = { '3', '\0' }; // make sure digit separators don't mess up chars
  6. float negative = -123.0f; // negative floating point numbers