Does double have a greater range than long?

前端 未结 3 545
既然无缘
既然无缘 2021-01-01 14:30

In an article on MSDN, it states that the double data type has a range of \"-1.79769313486232e308 .. 1.79769313486232e308\". Whereas the long data

3条回答
  •  迷失自我
    2021-01-01 15:04

    long is a signed 64-bit integer value and double is a 64-bit floating point value. Looking at their FCL types might make more sense. long maps to System.Int64 and double maps to System.Double.

提交回复
热议问题