From Xojo Documentation

Revision as of 18:39, 28 January 2021 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Global Method

Sin(value as Double) As Double

Supported for all project types and targets.

Returns the sine of the value specified.


result=Sin (value)

Part Type Description
value Double The value you want the sine of.
result Double The sine of value.


The Sin 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.


This example uses the Sin function to return the sine of a number.

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

See Also

Asin function.