npm.io
2.1.0 • Published 4 years ago

number-properties

Licence
ISC
Version
2.1.0
Deps
0
Size
2 kB
Vulns
0
Weekly
0

Project Title


Try Different Properties of number with basic functionalities

It has basic functions like

  • isSquareRoot : used to find if number is a perfect square or not
  • addNum : used to add two numbers
  • subNum : used to subtract two numbers
  • mulNum : used to get product of two numbers
  • divNum : used to get Division of two numbers
  • squareNum : used to get square of a number

How to Import

const numberProperties = require("number-properties");

Sample Input
  • console.log( numberProperties.isSquareRoot(16) );
  • console.log( numberProperties.addNum(5,8) );
  • console.log( numberProperties.subNum(8,5));
  • console.log( numberProperties.squareNum(5));
  • console.log(numberProperties.mulNum(3,8));
  • console.log(numberProperties.divNum(24,4));
Sample Output
  • true
  • 13
  • 3
  • 25
  • 24
  • 6