What does the “M” stand for in decimal value assignment?

后端 未结 3 1164
臣服心动
臣服心动 2021-02-18 14:23

MSDN says:

\"Without the suffix m, the number is treated as a double, thus generating a compiler error.\"

What does the \"M\" in:

decimal curren         


        
3条回答
  •  广开言路
    2021-02-18 14:53

    Well... I think "D" would be confused with double, so... they chose "M"? Maybe for "Money"? Seems a bit silly... but I couldn't find anything definitive.

提交回复
热议问题