hypot(a: f64, b: f64) → f64
Category: [math](builtinsmath)_
Length of the hypotenuse sqrt(a² + b²).
| Parameter | Type | Description | Remarks |
|---|---|---|---|
| a | f64 | The first operand. | — |
| b | f64 | The second operand. | — |
| returns | f64 | The result. | — |
wcl
hypot(3, 4) // hypotenuse of a 3-4 right triangle → 5.0