- C# 7 and .NET Core Cookbook
- Dirk Strauss
- 88字
- 2021-07-03 00:11:54
How to do it...
- Add the following lines of code to your project. It is clear that the newNum literal is easier to read, especially if you read it in groups of three.
var oldNum = 342057239127493;
var newNum = 342_057_239_127_493;
WriteLine($"oldNum = {oldNum} and newNum = {newNum}");
- If you run the console application, you will see that the values of the two number literals are exactly the same:

- The same logic is true for binary literals. You can now express them as follows:
var binLit = 0b1010_1100_0011_0010_0001_0000;
推薦閱讀
- Learning Real-time Processing with Spark Streaming
- PostgreSQL for Data Architects
- 實戰(zhàn)Java高并發(fā)程序設計(第3版)
- 量化金融R語言高級教程
- Building RESTful Python Web Services
- Linux Shell核心編程指南
- Node.js從入門到精通
- PostgreSQL Developer's Guide
- Implementing Domain:Specific Languages with Xtext and Xtend
- Game Programming using Qt 5 Beginner's Guide
- Office VBA開發(fā)經(jīng)典:中級進階卷
- Swift從入門到精通 (移動開發(fā)叢書)
- 羅布樂思開發(fā)官方指南:Lua 語言編程
- 亮劍ASP.NET項目開發(fā)案例導航
- 數(shù)據(jù)結構案例教程:C語言版