Range of floating point numbers in .NET?

前端 未结 2 908
予麋鹿
予麋鹿 2021-01-20 10:54

Excerpt from a book:

A float value consists of a 24-bit signed mantissa and an 8-bit signed exponent. The precision is approximately seven de

2条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-20 11:07

    You need to read "What Every Computer Scientist Should Know About Floating-Point Arithmetic" which will explain how floating point numbers are stored, which will also answer your question.

提交回复
热议问题