Skip to content
Subhajit Sahu edited this page Jun 25, 2020 · 4 revisions

Gives length of hypotenuse. 🏃 📼 📦 🌔 📒

bigint.hypot(...xs);
// xs: lengths of perpendicular sides
const bigint = require('extra-bigint');

bigint.hypot(3n, 4n);
// 5n

bigint.hypot(2n, 3n, 6n);
// 7n

bigint.hypot();
// 0n

references

Clone this wiki locally