<div dir="ltr">This yields a float result, which is out of range for floats:<br><br><div>b10   = exp(230.84)<br></div>b20   = exp(203.22)<br><br><div>Try explicitly making the constants double:<br><br><div>b10   = exp(230.84d)<br></div><div>b20   = exp(203.22d)<br><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 26, 2017 at 5:27 AM, Yi-Chih Huang <span dir="ltr">&lt;<a href="mailto:dscpln@gmail.com" target="_blank">dscpln@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>    I work on NCL Version 6.1.2.  It said the range of double type is e-308 - e+307 on <a href="https://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclDataTypes.shtml" target="_blank">https://www.ncl.ucar.edu/<wbr>Document/Manuals/Ref_Manual/<wbr>NclDataTypes.shtml</a>.  Although I have tried several ways, I only got infinity and 8 bits in return.  Could you show me the command to handle exponential calculation</div><div><div><br></div><div><br></div><div>b10   = todouble(exp(230.84))<br></div><div>b20   = todouble(exp(203.22))<br></div><div>b30   = new(1,double,0)<br></div><div>print(b10+&quot;  &quot;+b20+&quot;  &quot;+b30)<br></div><div><br></div><div><div>Variable: b30</div><div>Type: double</div><div>Total Size: 8 bytes</div><div>            1 values</div><div>Number of Dimensions: 1</div><div>Dimensions and sizes:   [1]</div><div>Coordinates:</div></div><div><br></div><div>(0)     inf  inf  inf<br></div></div><div><br></div><div><div>$ ncl -v</div><div>Unknown option `-v&#39;</div><div> Copyright (C) 1995-2013 - All Rights Reserved</div><div> University Corporation for Atmospheric Research</div><div> NCAR Command Language Version 6.1.2</div><div> The use of this software is governed by a License Agreement.</div><div> See <a href="http://www.ncl.ucar.edu/" target="_blank">http://www.ncl.ucar.edu/</a> for more details.</div></div><div><br></div><div>    Thanks much,</div><div><br></div><div>                     Yi-Chih</div></div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>