decimal literals are defined by using the suffix M or m on a real number:

decimal m = 30.5M;