Z15967

{
    "Z1K1": "Z2",
    "Z2K1": {
        "Z1K1": "Z6",
        "Z6K1": "Z15967"
    },
    "Z2K2": {
        "Z1K1": "Z14",
        "Z14K1": "Z15963",
        "Z14K3": {
            "Z1K1": "Z16",
            "Z16K1": "Z600",
            "Z16K2": "function Z15963( Z15963K1 )\r\n{\r\n function spell_block(x, block_index)\r\n {\r\n  var integers = [\"\", \"ein\", \"zwei\", \"drei\", \"vier\", \"fünf\", \"sechs\", \"sieben\", \"acht\", \"neun\"];\r\n  var teens = [\"\", \"elf\", \"zwölf\", \"dreizehn\", \"vierzehn\", \"fünfzehn\", \"sechszehn\", \"siebzehn\", \"achtzehn\", \"neunzehn\"];\r\n  var tys = [\"\", \"zehn\", \"zwanzig\", \"dreißig\", \"vierzig\", \"fünfzig\", \"sechzig\", \"siebzig\", \"achtzig\", \"neunzig\"];\r\n  \r\n  var hundreds_spelling = \"\", tens_and_ones_spelling = \"\", tens_spelling = \"\", ones_spelling = \"\";\r\n  var hundreds = x/100n;\r\n  if(hundreds != 0n) {hundreds_spelling = integers[hundreds] + \"hundert\";}\r\n  \r\n  var tens_and_ones = x %100n;\r\n  if(tens_and_ones \u003E= 11n \u0026\u0026 tens_and_ones \u003C=19n) {tens_and_ones_spelling = teens[tens_and_ones-10n];}\r\n  else\r\n  {\r\n   var tens = tens_and_ones/10n;\r\n   var ones = tens_and_ones % 10n;\r\n   if(tens != 0n) {tens_spelling = tys[tens];}\r\n   if(ones != 0n) {ones_spelling = integers[ones];}\r\n   \r\n   if(tens_spelling != \"\" \u0026\u0026 ones_spelling != \"\")\r\n    {tens_and_ones_spelling = ones_spelling + \"und\" + tens_spelling;}\r\n   else if(tens_spelling != \"\" \u0026\u0026 ones_spelling == \"\")\r\n    {tens_and_ones_spelling = tens_spelling;}\r\n   else if(tens_spelling == \"\" \u0026\u0026 ones_spelling != \"\")\r\n    {\r\n\t tens_and_ones_spelling = (x\u003C10n \u0026\u0026 !(block_index==0 \u0026\u0026 Z15963K1\u003E=1000n)) ? ones_spelling : \"und\" + ones_spelling + ((ones==1n)?\"s\":\"\");\r\n\t if(ones==1n \u0026\u0026 block_index\u003E=2) {tens_and_ones_spelling += \"e\";}\r\n\t}\r\n   else {}\r\n  }\r\n  \r\n  if(hundreds_spelling != \"\" \u0026\u0026 tens_and_ones_spelling != \"\")\r\n   {return hundreds_spelling + \"\" + tens_and_ones_spelling;}\r\n  else {return hundreds_spelling + tens_and_ones_spelling;}\r\n }\r\n \r\n var blocks_names = [ [\"\", \"\"], [\"tausend\", \"tausend\"], [\"million\", \"millionen\"], [\"milliarde\", \"milliarden\"], [\"billion\", \"billionen\"] ]\r\n var blocks_spelling = [];\r\n \r\n if(Z15963K1 == 1n) {blocks_spelling.push(\"s\");}\r\n if(Z15963K1 == 0n) {blocks_spelling.push(\"null\");}\r\n else\r\n {\r\n  var x_remainder = Z15963K1;\r\n  for(var i=0; i!=blocks_names.length; i++)\r\n  {\r\n   var cur_block = x_remainder % 1000n;\r\n   x_remainder = x_remainder/1000n;\r\n   var cur_block_spelling = spell_block(cur_block, i);\r\n   if(cur_block_spelling != \"\")\r\n   {\r\n    var plural_case_id = (cur_block%10n==1n \u0026\u0026 cur_block%100n!=11n) ? 0 : 1;\r\n    blocks_spelling.push(cur_block_spelling + (blocks_names[i][plural_case_id]==\"\" ? \"\" : (\"\"+blocks_names[i][plural_case_id]) ) );\r\n   }\r\n  }\r\n }\r\n \r\n return blocks_spelling.reverse().join(\"\");\r\n}"
        }
    },
    "Z2K3": {
        "Z1K1": "Z12",
        "Z12K1": [
            "Z11",
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1332",
                "Z11K2": "Імплементація Z15963 на JavaScript"
            },
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1002",
                "Z11K2": "German cardinal, JavaScript"
            },
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1014",
                "Z11K2": "Mmejuputa Javascript maka Z15963"
            },
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1004",
                "Z11K2": "cardinal en allemand, en allemand"
            },
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1430",
                "Z11K2": "deutsche Kardinalzahl in JavaScript"
            }
        ]
    },
    "Z2K4": {
        "Z1K1": "Z32",
        "Z32K1": [
            "Z31"
        ]
    },
    "Z2K5": {
        "Z1K1": "Z12",
        "Z12K1": [
            "Z11"
        ]
    }
}