Method

# Sin

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## Description

Returns the sine of the value specified.

## Usage

``` xojo
result = Sin(value)
```

| Part   | Type                             | Description                       |
|--------|----------------------------------|-----------------------------------|
| value  | `Double</api/data_types/double>` | The *value* you want the sine of. |
| result | `Double</api/data_types/double>` | The sine of *value*.              |

## Notes

The <span class="title-ref">Sin</span> function returns the sine of the angle (in radians) passed to it. If value is in degrees, multiply it by PI/180 to convert it to radians.

## Sample code

This example uses the <span class="title-ref">Sin</span> function to return the sine of a number.

``` xojo
Var d As Double
Const kPi = 3.1415926
d = Sin(0.5) ' returns 0.4794255
d = Sin(30 * kPi / 180) ' returns 0.5
```

## Compatibility

|                       |     |
|-----------------------|-----|
| **Project Types**     | All |
| **Operating Systems** | All |

<div class="seealso">

`Asin</api/math/asin>` function.

</div>
