Skip to content
Math & Text cos

$cos — Cosine of an angle in radians, as a real decimal.

Cosine of an angle in radians, as a real decimal.

Syntax

$cos[radians]

Parameters

  • radians (number, required) — The angle in radians.

Return Value

  • string.

Usage

$cos[0] → "1"

Example

$sendMessage[$cos[0]]

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.