UNPKG

agentsqripts

Version:

Comprehensive static code analysis toolkit for identifying technical debt, security vulnerabilities, performance issues, and code quality problems

9 lines (6 loc) 238 B
function calculatePercentage(part, whole) { return (part / whole) * 100; } function roundToDecimal(num, places) { return Math.round(num * Math.pow(10, places)) / Math.pow(10, places); }