0.1.2-c • Published 2 years ago

mylibint v0.1.2-c

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Mylibint

This a little example of a library made with TypeScript of four simple calculations.

Instalation

npm i mylibint

Methods

getSum(a:number,b:number):number

to make additions for two numbers. returns in terminal a + b

getSubs(a:number,b:number):number

to make substractions for two numbers. returns in terminal a - b

getMul(a:number,b:number):number

to make multiplication for two numbers. returns in terminal a * b

getDiv(a:number,b:number):number

to divide two numbers. returns in terminal a / b pd: if you use a 0 as b, it will return a NaN.

Usage

After installation:

import {Calculator} from 'mylibint';
let calculator = new Calculator;
//to see the result in terminal of addition
console.log(calculator.getSum(1,1));

Further

programasfulltech@gmail.com

0.1.2-c

2 years ago

0.1.2-b

2 years ago

0.1.2-a

2 years ago

0.1.2

2 years ago

0.1.1-a

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago