hypot(a: f64, b: f64) → f64

Category: [math](builtinsmath)_

Length of the hypotenuse sqrt(a² + b²).

ParameterTypeDescriptionRemarks
af64The first operand.
bf64The second operand.
returnsf64The result.
wcl
hypot(3, 4)   // hypotenuse of a 3-4 right triangle → 5.0