I am generating selectlist option for setting stroke-opacity , like:
<label for="so">
Stroke-opacity :</label>
<select id="so">
@for (double i = 1; i >= 0; i-=0.1)
{
<option value="@i">@i</option>
}
</select>
My problem is that, the last option (which should have value 0) have some unexpected value which is: 1.38777878078145E-16. Can please anybody tell me whats going on here?

Try using a type of
decimalinstead ofdouble. Sincedoubleis a floating-point number, it can lose precision.