Sin Function |
Named Arguments
No
Syntax
Sin(number)
number
Use: Required
Data Type: Numeric
An angle expressed in radians.
Return Value
A Double containing the sine of an angle.
Description
Returns the ratio of two sides of a right triangle in the range –1 to 1.
Rules at a Glance
The ratio is determined by dividing the length of the side opposite the angle by the length of the hypotenuse.
Programming Tips and Gotchas
You can convert degrees to radians using the formula:
radians = degrees * (pi/180)
You can convert degrees to radians using the formula:
degrees = radians * (180/pi)
See Also
- The math teacher I wish I'd listened to in school.
Get VB & VBA in a Nutshell: The Language now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.