title: Cannot convert null to 'float' because it is a non-nullable value type
body: <p>Can someone tell me what is wrong there? Because it throw error &quot;Cannot convert null to 'float' because it is a non-nullable value type&quot;</p>
  <pre><code>@model float
  
  &lt;div class=&quot;progress-bar&quot;&gt;
  &lt;div class=&quot;progress-green-bar&quot; style=&quot;width: @string.Format(&quot;{0}&quot;, (int?)(Model / 100.0f * 400));&quot;&gt;
  &lt;/div&gt;
  &lt;div class=&quot;progress-bar-percent-text&quot; style=&quot;text-align: center; color: black; font-size: 20px; position: absolute; top: 0; left: 0; right: 0; bottom: 0;&quot;&gt;
      @((int?)(Model))%
  &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>