Open mkgurramu opened 5 years ago
1 = one 21 = twenty-one 105 = one hundred five 56945781 = fifty-six million nine hundred forty-five thousand seven hundred eighty-one 999999999 = nine hundred ninety-nine million nine hundred ninety-nine thousand nine hundred ninety-nine 0 = zero 4 = four 10 = ten 12 = twelve 100 = one hundred 108 = one hundred eight 299 = two hundred ninety-nine 1000 = one thousand 1003 = one thousand three 2040 = two thousand forty 45213 = forty-five thousand two hundred thirteen 100000 = one hundred thousand 100005 = one hundred thousand five 100010 = one hundred thousand ten 202020 = two hundred two thousand twenty 202022 = two hundred two thousand twenty-two 999999 = nine hundred ninety-nine thousand nine hundred ninety-nine 1000000 = one million 1000001 = one million one 10000000 = ten million 10000007 = ten million seven 99999999 = ninety-nine million nine hundred ninety-nine thousand nine hundred ninety-nine 9223372036854775807 = nine quintillion two hundred twenty-three quadrillion three hundred seventy-two trillion thirty-six billion eight hundred fifty-four million seven hundred seventy-five thousand eight hundred seven -9223372036854775808 = minus nine quintillion two hundred twenty-three quadrillion three hundred seventy-two trillion thirty-six billion eight hundred fifty-four million seven hundred seventy-five thousand eight hundred eight 0001.2 = one and two tenth 3.141592 = three and one hundred forty-one thousand five hundred ninety-two millionth 769571689328130488290375060176330314231565038180140031107862348080.80594373223045449622778213 = seven hundred sixty-nine vigintillion five hundred seventy-one novemdecillion six hundred eighty-nine octodecillion three hundred twenty-eight septendecillion one hundred thirty sexdecillion four hundred eighty-eight quindecillion two hundred ninety quattuordecillion three hundred seventy-five tredecillion sixty duodecillion one hundred seventy-six undecillion three hundred thirty decillion three hundred fourteen nonillion two hundred thirty-one octillion five hundred sixty-five septillion thirty-eight sextillion one hundred eighty quintillion one hundred forty quadrillion thirty-one trillion one hundred seven billion eight hundred sixty-two million three hundred forty-eight thousand eighty and eighty septillion five hundred ninety-four sextillion three hundred seventy-three quintillion two hundred twenty-three quadrillion forty-five trillion four hundred forty-nine billion six hundred twenty-two million seven hundred seventy-eight thousand two hundred thirteen hundred-septillionth
package convertornumber;
import java.util.ArrayList; import java.util.List;
/**
@author mkgurramu@gmail.com */ public class NumberWorkConvertorClass {
static public class ScaleUnit { private int exponent; private String[] names; private ScaleUnit(int exponent, String...names) { this.exponent = exponent; this.names = names; } public int getExponent() { return exponent; } public String getName(int index) { return names[index]; } }
/* ScaleUnit / static private ScaleUnit[] SCALE_UNITS = new ScaleUnit[] { new ScaleUnit(63, "vigintillion", "decilliard"), new ScaleUnit(60, "novemdecillion", "decillion"), new ScaleUnit(57, "octodecillion", "nonilliard"), new ScaleUnit(54, "septendecillion", "nonillion"), new ScaleUnit(51, "sexdecillion", "octilliard"), new ScaleUnit(48, "quindecillion", "octillion"), new ScaleUnit(45, "quattuordecillion", "septilliard"), new ScaleUnit(42, "tredecillion", "septillion"), new ScaleUnit(39, "duodecillion", "sextilliard"), new ScaleUnit(36, "undecillion", "sextillion"), new ScaleUnit(33, "decillion", "quintilliard"), new ScaleUnit(30, "nonillion", "quintillion"), new ScaleUnit(27, "octillion", "quadrilliard"), new ScaleUnit(24, "septillion", "quadrillion"), new ScaleUnit(21, "sextillion", "trilliard"), new ScaleUnit(18, "quintillion", "trillion"), new ScaleUnit(15, "quadrillion", "billiard"), new ScaleUnit(12, "trillion", "billion"), new ScaleUnit(9, "billion", "milliard"), new ScaleUnit(6, "million", "million"), new ScaleUnit(3, "thousand", "thousand"), new ScaleUnit(2, "hundred", "hundred"), //new ScaleUnit(1, "ten", "ten"), //new ScaleUnit(0, "one", "one"), new ScaleUnit(-1, "tenth", "tenth"), new ScaleUnit(-2, "hundredth", "hundredth"), new ScaleUnit(-3, "thousandth", "thousandth"), new ScaleUnit(-4, "ten-thousandth", "ten-thousandth"), new ScaleUnit(-5, "hundred-thousandth", "hundred-thousandth"), new ScaleUnit(-6, "millionth", "millionth"), new ScaleUnit(-7, "ten-millionth", "ten-millionth"), new ScaleUnit(-8, "hundred-millionth", "hundred-millionth"), new ScaleUnit(-9, "billionth", "milliardth"), new ScaleUnit(-10, "ten-billionth", "ten-milliardth"), new ScaleUnit(-11, "hundred-billionth", "hundred-milliardth"), new ScaleUnit(-12, "trillionth", "billionth"), new ScaleUnit(-13, "ten-trillionth", "ten-billionth"), new ScaleUnit(-14, "hundred-trillionth", "hundred-billionth"), new ScaleUnit(-15, "quadrillionth", "billiardth"), new ScaleUnit(-16, "ten-quadrillionth", "ten-billiardth"), new ScaleUnit(-17, "hundred-quadrillionth", "hundred-billiardth"), new ScaleUnit(-18, "quintillionth", "trillionth"), new ScaleUnit(-19, "ten-quintillionth", "ten-trillionth"), new ScaleUnit(-20, "hundred-quintillionth", "hundred-trillionth"), new ScaleUnit(-21, "sextillionth", "trilliardth"), new ScaleUnit(-22, "ten-sextillionth", "ten-trilliardth"), new ScaleUnit(-23, "hundred-sextillionth", "hundred-trilliardth"), new ScaleUnit(-24, "septillionth","quadrillionth"), new ScaleUnit(-25, "ten-septillionth","ten-quadrillionth"), new ScaleUnit(-26, "hundred-septillionth","hundred-quadrillionth"), };
static public enum Scale { SHORT, LONG;
}
/**
static abstract public class AbstractProcessor {
}
static public class UnitProcessor extends AbstractProcessor {
}
static public class TensProcessor extends AbstractProcessor {
}
static public class HundredProcessor extends AbstractProcessor {
}
static public class CompositeBigProcessor extends AbstractProcessor {
}
static public class DefaultProcessor extends AbstractProcessor {
}
static public AbstractProcessor processor;
public static void main(String...args) {
}
}