Choose where you’d like to start

sin()

Overview

The sin() function takes a number as an argument, and returns the trigonometric sine of that number (angle measured in radians).

Return Type

  • Decimal

Syntax

<variable> = <number>.sin();

(OR)

<variable> = sin(<number> );
ParameterDescriptionData type
<variable>Variable which will contain the returned value.DECIMAL
<number>The number whose sine value will be returned.NUMBER or DECIMAL

Examples

number= 90;
sinValue = number.sin();       // returns 0.8939966636005579

Get Started Now

Execute