How to use Int64 in C#

旧时模样 提交于 2019-12-12 09:36:21

问题


The question is easy! How do you represent a 64 bit int in C#?


回答1:


64 bit int is long




回答2:


System.Int64 is the .net type, in C# it's also called long




回答3:


A signed 64 bit integer is long, an unsigned is ulong.

The corresponding types in the framwwork are System.Int64 and System.UInt64, respectively.

Example:

long bigNumber = 9223372036854775807;



回答4:


By using the long data type, or ulong for unsigned.

Table of Integral C# Types



来源:https://stackoverflow.com/questions/3845205/how-to-use-int64-in-c-sharp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!