3 ms·
Apostrophe as a number separator? Where’s that from?
by zeristor 1y ago
Apostrophe as a number separator?
Where’s that from?
- deleted 1y ago[deleted]
- dahart 1y agoSwitzerland and Italy for two. https://en.wikipedia.org/wiki/Decimal_separator# https://en.wikipedia.org/wiki/Decimal_separator# Also note C++14 introduced the apostrophe in numeric literals! https://en.cppreference.com/w/cpp/language/integer_literal https://en.cppreference.com/w/cpp/language/integer_literal
- lacoolj 1y agoLearn somethin new every day. And I would never have known this existed without hackernews
- logdahl 1y agoInteresting that Sweden explicitly do NOT use it... Not sure where i picked it up! :-)
- qingcharles 1y agoI've started using the underscore in my code since that is becoming the (non-localized) standard and trendy: https://en.wikipedia.org/wiki/Integer_literal#Digit_separators https://en.wikipedia.org/wiki/Integer_literal#Digit_separato...
- m-schuetz 1y agoApostrophe are nice because they are not ambiguous. Started using them myself after getting used to them from C++ and learning that they are used in switzerland.