tags:

views:

59

answers:

1

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

A: 

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
Charlie Somerville