maximum value for type float in c#

前端 未结 8 1621
你的背包
你的背包 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:12

    3.4e38 is 3.4 * 10^38 or 340000000000 ... (37 zeros)

    additional information:

    http://msdn.microsoft.com/en-us/library/b1e65aza(v=vs.71).aspx

提交回复
热议问题