This is a general purpose calculator which also features Roman numbers.
Numbers may be entered as Roman numerals or decimal digits.
Roman numerals are M, D, C, L, X, V, I, S, ●, £ and $.
In output, additional numerals ℈ and » may appear.
Fractions: » 1/1728 siliqua ℈ 1/288 scripulum $ 1/144 dimidia sextula £ 1/24 semuncia ● 1/12 uncia ●● 1/6 sextans ●●● 1/4 quadrans ●●●● 1/3 triens ●●●●● 5/12 quincunx S 1/2 semis S● 7/12 septunx S●● 2/3 bes S●●● 3/4 dodrans S●●●● 5/6 dextans S●●●●● 11/12 deinx Numerals: I 1 V 5 X 10 L 50 C 100 D 500 M 1000 (V) 5000 ... (M) 1000000 ((V)) 5000000 ... ((M)) 1000000000
The calculator displays Roman numbers of magnitude up to four billion (4e9).
Roman numbers less than 1/3456 = 0.0002893519 (other than zero) cannot be displayed.
Roman numbers (other than zero) are rounded up by 1/3456.
Keyboard input may be used if desired. Characters on buttons marked with a single letter
or symbol may be entered directly. Other buttons may have alternative keyboard characters
which are revealed in the button tooltips.
To use keyboard input on mobile phones and tablet computers, click inside the green bar at the
bottom of the widget. This should cause the virtual keyboard to appear.
a ÷ b is equal to Math.trunc(a / b), where
Math.trunc = function (x) {
return x < 0 ? Math.ceil(x) : Math.floor(x);
};
The modulo (%) operator is the javascript remainder operator.
It produces the remainder on dividing one number (the dividend) by another (the divisor).
The remainder always takes the sign of the dividend.
a % b is equal to a - b * Math.trunc(a / b), or
a - b * (a ÷ b).
a ÷ b can also be computed as (a - a % b) / b.
It follows that b * (a ÷ b) + (a % b) is always equal to a.
The decimal calculator logic is based on code by Daniel Dickison.
The button images were made by John Riddle.
The Roman Kalculator is Copyright © 2016 Harry Whitfield.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program 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 this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA