Code Monkey home page Code Monkey logo

fraction-ify's People

Contributors

jeremycarlsten avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fraction-ify's Issues

Greatest Common Denominator

The method used to caluclate greatest common denominator seems to not be working to find the simplest form of
the fraction when very large or small numbers are used.

For example:
the decimal .0000025
comes out to: "1152921504606847/461168601842738800000"
but really simplifies to: 1/400000 (according to an online calculator. Need to check the math)

Handling greater than 1

I would like to see the plugin handle numbers greater than one.

For example:
1.5 -> 1 1/2
1.25 -> 1 1/4
99.625 -> 99 5/8

HTML type="number"

I would like to see the ability to use the type="number" with this. the up and down arrows could change the fraction. The issue is of course that a fraction is not a number. I need to find a way to split apart the display text and the actual value.

HTML value use

Once the value is changed the input is a string value not a number. Not as friendly as It could be.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.