Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /home/bateeqjg/public_html/news/wp-content/plugins/wp-syntax/wp-syntax.php on line 380
Warning: Undefined array key "layout" in /home/bateeqjg/public_html/news/wp-content/plugins/wp-about-author/wp-about-author.php on line 94
Hey Everyone,
I created a project called Ratio.js. Basically the goal of the project is to provide an simple object for dealing with fractions in javascript.
Check it out here and tell me what this.
Ratio.js
Sample Code
// converts decimal values into the form of a fraction. a = Ratio.parse(1/2); a.toString() == "1/2"; // converts strings in the form of "a/b" to a fraction a/b. a = Ratio.parse( "1/2" ); a.toString() == "1/2"; var result = Ratio.parse( 12.12121212121212 ).reduce().toString(); result == "400/33"; |

