cos¶ In std/math. fn cos(self: Float) : Float The cosine of self, an angle in radians: cos(0.0f) is 1.0.