# GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateDouble

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateDouble_" data-uid="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateDouble*">ValidateDouble Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateDouble_" data-uid="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateDouble*"></a>
<h4 id="GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateDouble_System_Double_System_Double_System_Double_" data-uid="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateDouble(System.Double,System.Double,System.Double)">ValidateDouble(double, double, double)</h4>
<div class="markdown level1 summary"><p>Validates a double value to make sure it is valid and is within the specified min/max range limit.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void ValidateDouble(double value, double min, double max)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a> value to validate.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">min</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a> value representing the minimum integer allowed.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">max</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a> value representing the maximum integer allowed.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.PageReportModel.ReportDefinitionException.html">ReportDefinitionException</a></td>
      <td><p>Throws if the value is out of range limit.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateDouble_" data-uid="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateDouble*"></a>
<h4 id="GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateDouble_GrapeCity_Enterprise_Data_Expressions_ExpressionInfo_System_Double_System_Double_" data-uid="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateDouble(GrapeCity.Enterprise.Data.Expressions.ExpressionInfo,System.Double,System.Double)">ValidateDouble(ExpressionInfo, double, double)</h4>
<div class="markdown level1 summary"><p>Validates an expression value to make sure it is valid and is within the specified min/max values.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void ValidateDouble(ExpressionInfo expression, double min, double max)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="../MESCIUS.ActiveReports.Core.Data.ExpressionInfo/GrapeCity.Enterprise.Data.Expressions.ExpressionInfo.html">ExpressionInfo</a></td>
      <td><span class="parametername">expression</span></td>
      <td><p>An <a class="xref" href="../MESCIUS.ActiveReports.Core.Data.ExpressionInfo/GrapeCity.Enterprise.Data.Expressions.ExpressionInfo.html">ExpressionInfo</a> value to validate.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">min</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a> value representing the minimun size allowed.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">max</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a> value representing the maximum size allowed.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateDouble_GrapeCity_Enterprise_Data_Expressions_ExpressionInfo_System_Double_System_Double__examples">Examples</h5>
<pre><code class="lang-csharp">ExpressionInfo value = ExpressionInfo.FromString("2.5");
ValidationUtils.ValidateDouble(value, 0.0d, 5.0d);</code></pre>

<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.PageReportModel.ReportDefinitionException.html">ReportDefinitionException</a></td>
      <td><p>Throws if the value is out of range limit.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
