In this guide, we will explain how to use the MySQL SIN function with syntax and examples.
Description
The MySQL SIN function returns the sine of a number.
Syntax
The syntax for the SIN function is:
SIN( number )
Parameters or Arguments
number
The value used to calculate the sine. It is expressed in radians.
Applies To
The SIN function can be used in the following versions of :
- MySQL 5.7, MySQL 5.6, MySQL 5.5, MySQL 5.1, MySQL 5.0, MySQL 4.1, MySQL 4.0, MySQL 3.23
Example
Let’s look at some SIN function examples and explore how to use the SIN function.
For example:
mysql> SELECT SIN(2); Result: 0.9092974268256817 mysql> SELECT SIN(0); Result: 0 mysql> SELECT SIN(-0.9); Result: -0.7833269096274834
Next Topic : Click Here
Pingback: MySQL: SIGN Function | Adglob Infosystem Pvt Ltd