https://github.com/abranhe/fraction-unicode
String representation of a number in fractional form
https://github.com/abranhe/fraction-unicode
fraction javascript math unicode
Last synced: 3 months ago
JSON representation
String representation of a number in fractional form
- Host: GitHub
- URL: https://github.com/abranhe/fraction-unicode
- Owner: abranhe
- License: mit
- Created: 2022-03-06T05:57:20.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-01T01:02:37.000Z (over 3 years ago)
- Last Synced: 2026-03-16T08:01:26.879Z (4 months ago)
- Topics: fraction, javascript, math, unicode
- Language: TypeScript
- Homepage: https://npmjs.com/fraction-unicode
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# fraction-unicode
[](https://github.com/abranhe/fraction-unicode/actions)
[](https://npmjs.org/fraction-unicode)
[](https://npmjs.org/fraction-unicode)
> String representation of a number in fractional form
## Install
```bash
yarn add fraction-unicode
```
## Usage
```js
import fractionUnicode from 'fraction-unicode';
fractionUnicode(1, 2);
// '½'
fractionUnicode(7, 13);
// '⁷⁄₁₃'
```
## License
MIT © [Abraham Hernandez](https://abranhe.com)