VBScript ExpFunction
Complete VBScript Reference
The Exp function returnsethe power of (the base of natural logarithms).
Note:The value of number cannot exceed 709.782712893.
Tip:See the Log function.
Syntax
Exp(number)
| Parameter | Description |
|---|---|
| number | Required. A valid numeric expression. |
Example
Example
<script type="text/vbscript">
document.write(Exp(6.7) & "<br />")
document.write(Exp(-6.7))
</script>
document.write(Exp(6.7) & "<br />")
document.write(Exp(-6.7))
</script>
The output of the above example is:
812.405825167543
1.23091190267348E-03
1.23091190267348E-03
Try it Yourself »
Complete VBScript Reference Other Extensions