Skip to Content
VB.NET Language in a Nutshell, Second Edition
book

VB.NET Language in a Nutshell, Second Edition

by Steven Roman PhD, Ron Petrusha, Paul Lomax
April 2002
Intermediate to advanced
688 pages
19h 51m
English
O'Reilly Media, Inc.
Content preview from VB.NET Language in a Nutshell, Second Edition

Name

Exp Function

Class

System.Math

Syntax

Math.Exp(d)
d (required; Numeric)

Any valid numeric expression

Return Value

Double

Description

A Double representing the natural number e raised to the power d. Note that the irrational number e is approximately 2.7182818.

Rules at a Glance

  • The maximum value for d is 709.782712893.

  • Exp is the inverse of the Log function.

  • Because this function can accept numeric values only, you may want to check the value you pass using the IsNumeric function to prevent generating an error.

  • This is a Shared member, so it can be used without creating any objects.

VB.NET/VB 6 Differences

  • In VB 6, Exp was an intrinsic VB function. In VB.NET, it is a member of the Math class in the System namespace. Hence, in VB.NET, calls to Exp must be prefaced with the Math class name.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

VB .NET Language in a Nutshell

VB .NET Language in a Nutshell

Steven Roman PhD, Ron Petrusha, Paul Lomax

Publisher Resources

ISBN: 0596003080Supplemental ContentCatalog PageErrata