cos

This block is part of the math group and was last modified in core v13.0.7.

cos v13.0.7

Returns the cosine of a number

In pins 1
  • number_0 required
    number
Out pins 1
  • Number
    number

Outputs the cosine of number_0 (radians). Numeric strings and booleans coerce; a wired non-numeric value counts as 0 (so cos -> 1), and an unwired or nil pin writes nothing to the output. Example: number_0=0 -> 1.

A typical wiring for Cos: the number out pin feeds cast to value.

Studio canvas example for the Cos block: typical wiring for Cos.

Version history

Introduced in v13.0.7.


Back to math Return to the main group to view all sub-groups Back to number: static methods Return to the group to view all blocks within this group