presentations/highlight-js/test/markup/cpp/number-literals.txt

7 lines
351 B
Text
Raw Normal View History

2018-12-07 08:48:05 -06:00
/* digit separators */
int number = 2'555'555'555; // digit separators
float exponentFloat = .123'456e3'000; // digit separators in floats
float suffixed = 3.000'001'234f // digit separators in suffixed numbers
char word[] = { '3', '\0' }; // make sure digit separators don't mess up chars
float negative = -123.0f; // negative floating point numbers