@using LeafWeb.Web.Utility @model float? @{ float f; if (!Model.HasValue) { f = 0.0f; } else { f = Model.Value; } }