开发者

when you do decimals does the 0 go in front or back

开发者 https://www.devze.com 2022-12-24 08:46 出处:网络
开发者_运维技巧when you are doing decimals does the 0 go in the front or backI\'ll assume you\'re using C#, since that\'s the dominant language on this site.

开发者_运维技巧when you are doing decimals does the 0 go in the front or back


I'll assume you're using C#, since that's the dominant language on this site.

Decimals aren't notated with a 0, rather they have the M suffix, eg:

decimal a = 123M;
decimal b = 123.456M;
float c = 123.456M; // compile error
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号