antonmedv / antonmedv/numbr

Add support for logarithms

Aperta
#2 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
TypeScript
Stelle
581
Fork
48
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Numbr is awesome. Muchas gracias for it.

I was doing some cryptography, trying to calculate how some low probabilities compare to the number of seconds until the earth is consumed by the sun:

https://numbr.dev/#KwGgDB6RYAQBQDMCWA3AprARsgNr5AewDsBKWAT3QEMAnAZ1gFdiAXPWel2AYxK4C26RjVqsAFgCgAzADZgsACbUKjAA7palUZIBMAFljjCTBrA1blFSbLgDkxJq2HnNRk7Rtx66PsUXqbvaOzpKwgGfkALQAjCC2gOfksABUETFxYImcviQBrlrGpmFRsdLpGcmp+iAGiT5+uRZKKkVpAByyIPoQiSlRHXLAtdn+gVpUdC0lscByUOW9ka0goDBzc5l1OYzs+JzcfoIuohKSLbog0cAA7HGtYGurj92wsMiMl1ewAI5M1Iq0eAIJFIklwxHgqViH1u9yesOgzxBkiAA

(The answer is about 157 quadrillion seconds, in case you were wondering.)

But I wanted to convert that result to base-2 or base-10. Seems like there's currently no support for `log()` or `ln()` functions.

Would love to see them added! 🙌

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.