项目作者: da-strange-boi

项目描述 :
😀 A trecentosexagesimal numeral system themed around emojis
高级语言: C++
项目地址: git://github.com/da-strange-boi/Base360-Emoji.git
创建时间: 2020-08-06T12:56:14Z
项目社区:https://github.com/da-strange-boi/Base360-Emoji

开源协议:MIT License

下载


The idea for this project came about as a joke although this package may have some actual usage

Installing

For npm:

  1. $ npm install base360-emoji

For yarn:

  1. $ yarn add base360-emoji

Basic Example

  1. const Base360 = require('base360-emoji');
  2. // some very large number
  3. const number = 100n ** 10n;
  4. const encoded = Base360.encode(number); // 🩰🍁🎩🌊🌚🦅🔓🎀
  5. const decoded = Base360.decode(encoded); // 100000000000000000000n

Todo

  • Does this actually save space for larger numbers than base10, base16, and base32?
  • Time complexity of the functions