Name

Asin Function

Class

System.Math

Syntax

Math.Asin(d)
d (required; Double or any valid numeric expression)

A number representing a sine, which can range from -1 to 1

Return Value

A Double between -pi/2 and pi/2 that is the arcsine of d in radians

Description

Returns the arcsine of d, in radians

Rules at a Glance

  • If d is out of range, the function returns NaN.

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

Programming Tips and Gotchas

To convert from radians to degrees, multiply by 180/pi.

VB.NET/VB 6 Differences

The Asin function did not exist in VB 6.

Get VB.NET Language in a Nutshell, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.