- 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;
推薦閱讀
- 單片機C語言程序設計實訓100例:基于STC8051+Proteus仿真與實戰
- AngularJS Web Application Development Blueprints
- 單片機應用技術
- The Data Visualization Workshop
- 零基礎學Python網絡爬蟲案例實戰全流程詳解(高級進階篇)
- HTML5 APP開發從入門到精通(微課精編版)
- Visual C#.NET Web應用程序設計
- 細說Python編程:從入門到科學計算
- Modern C++ Programming Cookbook
- SciPy Recipes
- LabVIEW入門與實戰開發100例(第4版)
- Kotlin語言實例精解
- Moodle 3.x Developer's Guide
- Unity 3D UI Essentials
- Office VBA開發經典:中級進階卷