# sin

## Description

Get the sine of an angle, in radians. The output will return a number between -1 and 1.

## Input / Parameter

| Name  | Description                       | Input Type | Default | Options | Required |
| ----- | --------------------------------- | ---------- | ------- | ------- | -------- |
| value | The number to return the sine of. | Number     | -       | -       | Yes      |

## Output

| Description                   | Output Type |
| ----------------------------- | ----------- |
| Returns the sine of an angle. | Number      |

## Example

In this example, we will get the sine of a value and print it in the console.

### Steps

1. Drag a `button` component into the canvas and open the `Action` tab. Select the `press` event of the button and drag the `Log.write` function to the event flow.
2. Call the function `Math.sin` inside the `Log.write` function.
3. Enter the value to get the sine of.

   ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-88dcc0bb073cd2feec3fa67de5079ef2843e40fb%2Fsin-step-1.png?alt=media)

### Result

1. The console will print the sine of the value passed.

   ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-ef5444c51743710e0a829fcbbb462f7454190da9%2Fsin-result-1.png?alt=media)
