maximum value for type float in c#

前端 未结 8 1644
你的背包
你的背包 2021-02-12 14:27

when i do this:

float x = float.MaxValue;

I have the result: 3.40282347E+38

What is E+38? how can I represent the maximum number withou

8条回答
  •  眼角桃花
    2021-02-12 15:05

    It's approx. 340 000 000 000 000 000 000 000 000 000 000 000 000

    If you use Dan's code, you'll get this as a result:

    340282300000000000000000000000000000000
    

提交回复
热议问题