Skip to content

String representation of a number in fractional form

License

Notifications You must be signed in to change notification settings

abranhe/fraction-unicode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fraction-unicode

GH Status NPM License

String representation of a number in fractional form

Install

yarn add fraction-unicode

Usage

import fractionUnicode from 'fraction-unicode';

fractionUnicode(1, 2);
// '½'

fractionUnicode(7, 13);
// '⁷⁄₁₃'

License

MIT © Abraham Hernandez