1.1.1 • Published 3 years ago

umath v1.1.1

Weekly downloads
7
License
MIT
Repository
github
Last release
3 years ago

umath

the most useless and weirdest math lib

how to use:

console.log(num(5000).add(114).subtract(5010).add(1000).divide(4).multiply(55).cosine().round().multiply(56).add(700).subtract(1).sine().tangent().add(5000.6).floor().output);  //5001
//or simply
console.log(num(5000).a(114).m(5010).a(1000).d(4).t(55).c().r().t(56).a(700).m(1).s().g().a(5000.6).f().output); //5001

🙃 emoji output

console.log(num(5000).add(114).subtract(5010).add(1000).divide(4).multiply(55).cosine().round().multiply(56).add(700).subtract(1).sine().tangent().add(5000.6).floor().toEmoji()); //5️⃣0️⃣0️⃣1️⃣

⚠️ You can't add methods after .output, .toEmoji() and .toStr().


Useless features

Temperature Converter

console.log(num(80).convert('celsius', 'kelvin').output); // 353.15

open up an issue if there's an issue with the converter (e.g. wrong result, etc)


Questions

how do I install it?

browser:

<script src="https://unpkg.com/umath@1"></script>

npm:

npm install umath
const { num } = require('umath');

what's the use of this lib? I have exactly no idea.

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago