when you do decimals does the 0 go in front or back
开发者_运维技巧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
精彩评论