# C1.Web.Mvc.InputNumber.Truncate

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Web_Mvc_InputNumber_Truncate_" data-uid="C1.Web.Mvc.InputNumber.Truncate*">Truncate Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Web_Mvc_InputNumber_Truncate_" data-uid="C1.Web.Mvc.InputNumber.Truncate*"></a>
<h4 id="C1_Web_Mvc_InputNumber_Truncate" data-uid="C1.Web.Mvc.InputNumber.Truncate">Truncate</h4>
<div class="markdown level1 summary"><p>Gets or sets whether the control truncates numeric values that exceed the decimal precision defined by <a class="xref" href="C1.Web.Mvc.InputNumber.Format.html#C1_Web_Mvc_InputNumber_Format">Format</a>, instead of applying rounding.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual bool Truncate { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Property Truncate As Boolean</code></pre>
</div>
<h5 id="C1_Web_Mvc_InputNumber_Truncate_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>For example, if format = 'n2' and the value is 99.999, setting <a class="xref" href="C1.Web.Mvc.InputNumber.Truncate.html#C1_Web_Mvc_InputNumber_Truncate">Truncate</a> to true will store 99.99 rather than rounding to 100. Default is false, which preserves the standard rounding behavior.</p>
</div>
</div>
