|
|
Test
-
<script type="text/javascript" src="/library/com/oclib/javascript/lang/Root.js"></script>
-
<script type="text/javascript" src="NumeralSystem.js"></script>
-
var numeralSystem = new com.oclib.javascript.math.NumeralSystem();
-
document.write("className: "+numeralSystem.getClassName());
-
document.write("classNamespace: "+numeralSystem.getClassNamespace());
-
document.write("classCreated: "+numeralSystem.getClassCreated());
-
document.write("classCreator: "+numeralSystem.getClassCreator());
-
document.write("classLocation: "+numeralSystem.getClassLocation());
-
document.write("classIndexLocation: "+numeralSystem.getClassIndexLocation());
-
document.write("classVersion: "+numeralSystem.getClassVersion());
-
document.write("classVersionLocation: "+numeralSystem.getClassVersionLocation());
-
document.write("classVersionIndexLocation: "+numeralSystem.getClassVersionIndexLocation());
-
document.write("debugging: "+numeralSystem.getDebugging());
-
document.write("log: "+numeralSystem.getLog());
-
document.write("tracing: "+numeralSystem.getTracing());
-
document.write("Convert 64 from 10 to 2: "+numeralSystem.convert36(64, 10, 2));
document.write("Convert 16 from 10 to 16: "+numeralSystem.convert36(16, 10, 16));
document.write("Convert ABCDEF from 16 to 10: "+numeralSystem.convert36("ABCDEF", 16, 10));
document.write("Convert 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ from 36 to 10: "+numeralSystem.convert36("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", 36, 10));
-
document.write("Convert Decimal 1 to Roman: "+numeralSystem.convertDecimalToRoman(1));
document.write("Convert Decimal 10 to Roman: "+numeralSystem.convertDecimalToRoman(10));
document.write("Convert Decimal 100 to Roman: "+numeralSystem.convertDecimalToRoman(100));
document.write("Convert Decimal 1000 to Roman: "+numeralSystem.convertDecimalToRoman(1000));
document.write("Convert Decimal 9000 to Roman: "+numeralSystem.convertDecimalToRoman(9000));
-
document.write("Convert Roman I to Decimal: "+numeralSystem.convertRomanToDecimal("I"));
document.write("Convert Roman V to Decimal: "+numeralSystem.convertRomanToDecimal("V"));
document.write("Convert Roman X to Decimal: "+numeralSystem.convertRomanToDecimal("X"));
document.write("Convert Roman L to Decimal: "+numeralSystem.convertRomanToDecimal("L"));
document.write("Convert Roman C to Decimal: "+numeralSystem.convertRomanToDecimal("C"));
document.write("Convert Roman D to Decimal: "+numeralSystem.convertRomanToDecimal("D"));
document.write("Convert Roman M to Decimal: "+numeralSystem.convertRomanToDecimal("M"));
document.write("Convert Roman MMMMMMMMMDCCCLXXXVIII to Decimal: "+numeralSystem.convertRomanToDecimal("MMMMMMMMMDCCCLXXXVIII"));
-
document.write("Convert to Decimal 10 from 10: "+numeralSystem.convertToDecimal(10,10));
document.write("Convert to Decimal A from 16: "+numeralSystem.convertToDecimal("A",16));
document.write("Convert to Decimal 100 from 16: "+numeralSystem.convertToDecimal(100,16));
document.write("Convert to Decimal 100 from 2: "+numeralSystem.convertToDecimal(100,2));
document.write("Convert to Decimal z from 62: "+numeralSystem.convertToDecimal("z",62));
document.write("Convert to Decimal zz from 62: "+numeralSystem.convertToDecimal("zz",62));
document.write("Convert to Decimal 27F5F653 from 16: "+numeralSystem.convertToDecimal("27F5F653",16));
-
document.write("Convert from Decimal 10 to 10: "+numeralSystem.convertFromDecimal(10,10));
document.write("Convert from Decimal 10 to 16: "+numeralSystem.convertFromDecimal(10,16));
document.write("Convert from Decimal 256 to 16: "+numeralSystem.convertFromDecimal(256,16));
document.write("Convert from Decimal 4 to 2: "+numeralSystem.convertFromDecimal(4,2));
document.write("Convert from Decimal 61 to 62: "+numeralSystem.convertFromDecimal(61,62));
document.write("Convert from Decimal 3843 to 62: "+numeralSystem.convertFromDecimal(3843,62));
-
document.write("Convert 10 from 10 to 10: "+numeralSystem.convert(10,10,10));
document.write("Convert 10 from 10 to 16: "+numeralSystem.convert(10,10,16));
document.write("Convert 27F5F653 from 16 to 62: "+numeralSystem.convert("27F5F653",16,62));
|
|
oclib.com,
oclib.net,
oclib.org,
oclib.ru,
openclasslibrary.ru,
openclasslibrary.com,
openclasslibrary.net,
openclasslibrary.org
|