如何在 C# 中使用 Int64

发布于 2024-09-26 03:36:27 字数 33 浏览 2 评论 0原文

问题很简单!在 C# 中如何表示 64 位 int?

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

弥枳 2024-10-03 03:36:27

64位int很长

64 bit int is long

江挽川 2024-10-03 03:36:27

有符号 64 位整数为 long,无符号为 ulong

框架中对应的类型分别是System.Int64System.UInt64

例子:

long bigNumber = 9223372036854775807;

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;
夜未央樱花落 2024-10-03 03:36:27

通过使用long数据类型,或ulong表示无符号。

完整 C# 类型表

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

Table of Integral C# Types

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文