C#是否具有无符号双精度? [英] Does C# have an Unsigned Double?

查看:280
本文介绍了C#是否具有无符号双精度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用 unsigned double ,但事实证明C#没有提供这种类型。

I need to use an unsigned double but it turns out C# does not provide such a type.

有人知道为什么吗?

推荐答案

浮点数只是IEEE 754规范的实现。据我所知,那里没有无符号的双精度值。

Floating point numbers are simply the implementation of the IEEE 754 spec. There is no such thing as an unsigned double there as far as i know.

http://en.wikipedia。 org / wiki / IEEE_754-2008

为什么需要一个无符号浮点数?

Why do you need an unsigned floating point number?

这篇关于C#是否具有无符号双精度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆