Does C# have an Unsigned Double?

后端 未结 4 701
忘掉有多难
忘掉有多难 2020-12-20 11:14

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

Does anyone know why?

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-20 11:26

    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?

提交回复
热议问题