UNPKG

bigrat

Version:

rational.js: tools and libraries using rational numbers.

28 lines (25 loc) 1.01 kB
/* * rational.js - Javascript tools and libraries based around rational numbers. * Copyright (C) 2013 Dylan Ferris * * This file is part of rational.js. * * rational.js is free software: you may redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * rational.js is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with rational.js. If not, see <http://www.gnu.org/licenses/>. */ // This is where old code comes to die... var RAT_ZERO = rat.ZERO; var RAT_ONE = rat.ONE; var RAT_INFINITY = rat.INFINITY; var RAT_INFINULL = rat.INFINULL; var RAT_INFINITESIMAL = rat.INFINITESIMAL;