Skip to content

Commit

Permalink
fix: readme simplified
Browse files Browse the repository at this point in the history
  • Loading branch information
islemci committed Oct 1, 2024
1 parent e0db2c5 commit b8a4279
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ npm install nicemath
## Usage

```typescript
import { add, subtract, multiply, divide, power, sqrt, factorial, abs, combination, isPrime, isEven, isOdd, isPositive, isNegative, isZero, isInteger, isFloat, isWhole, isDecimal, isDivisible } from 'nicemath';
import { add, subtract, multiply, divide, power, sqrt, factorial, abs, combination, isPrime, isEven, isOdd, isPositive, isNegative, isZero, isInteger, isFloat, isWhole, isDecimal, isDivisible, isPerfectSquare, isFibonacci } from 'nicemath';

// Examples
console.log(add(2, 3)); // 5
Expand All @@ -25,16 +25,7 @@ console.log(factorial(5)); // 120
console.log(abs(-5)); // 5
console.log(combination(5, 2)); // 10
console.log(isPrime(7)); // true
console.log(isEven(4)); // true
console.log(isOdd(3)); // true
console.log(isPositive(5)); // true
console.log(isNegative(-3)); // true
console.log(isZero(0)); // true
console.log(isInteger(4)); // true
console.log(isFloat(4.5)); // true
console.log(isWhole(4)); // true
console.log(isDecimal(4.5)); // true
console.log(isDivisible(10, 2)); // true
// and more...
````

## Contributing
Expand Down

0 comments on commit b8a4279

Please sign in to comment.