Question

when you are doing decimals does the 0 go in the front or back

No correct solution

OTHER TIPS

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
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top