Question: ```
 <tr ng-repeat="baseline in tower.baselines"></tr>

```

I have above HTML code where i have been using the ng-repeat to get to store the distorted array into an variable baseline....how can i access the same variable into controller?

Answer: 
> 
> when the type, of variable, is exclusively stated, why should there be a suffix?
> 
> 
> 

You need a cast only in situations when the value that you are assigning has a decimal point. In your case, `50.0` represents a literal of type `double`. You can avoid suffix by adding a cast, like this

```
decimal l = (decimal)50.0; // Do not do this!

```

but this may result in conversion errors:

```
decimal d = (decimal)1.23456789123456789;
Console.WriteLine(d); // Prints 1.23456789123457
decimal e = 1.23456789123456789M;
Console.WriteLine(e); // Prints 1.23456789123456789

```

Note that the following will compile without a suffix or a cast, because `int` to `decimal` conversion never loses precision:

```
decimal l = 50;

```

Another place where you may want `M` suffix is in expressions that manipulate decimals:

```
decimal tenPercentBroken  = myDecimal * 0.1;  // Does not compile
decimal tenPercentCorrect = myDecimal * 0.1M; // Compiles fine

```
`50.0` in C# is a literal `double`, so without the `M` suffix, you are trying to implicitly convert a `double` to a `decimal` (an implicit conversion that does not exist).

Using `decimal l = 50.0M;` says: assign this decimal to that decimal variable.