decimal in c# misunderstanding?

后端 未结 2 1595
名媛妹妹
名媛妹妹 2021-02-14 07:26

(while trying to analyze how decimal works ) && after reading @jonskeet article and seeing msdn , and thinking for the last 4 hours , I have some

2条回答
  •  无人共我
    2021-02-14 08:16

    They've given the range to just two significant digits, but specified the precision separately. That's why the range is listed as "approximate range".

    The decimal representation of 0.5 would be a mantissa of 5 and an exponent of 1 (which is treated in the inverse sense to normal, i.e. it's effectively -1).

提交回复
热议问题