Same units for a, b, c.
Right triangle legs a and b must be positive; hypotenuse c = √(a² + b²) computed via Math.hypot for numerical stability.
This calculator uses plain decimal numbers. If a result looks wrong, check whether you used a comma instead of a dot (or vice versa) where the field expects one.