Z15568

{
    "Z1K1": "Z2",
    "Z2K1": {
        "Z1K1": "Z6",
        "Z6K1": "Z15568"
    },
    "Z2K2": {
        "Z1K1": "Z14",
        "Z14K1": "Z15567",
        "Z14K3": {
            "Z1K1": "Z16",
            "Z16K1": "Z610",
            "Z16K2": "def Z15567(Z15567K1):\n    input_value=Z15567K1\n    # define the units and tens place\n    ones = [\"\", \"satu \", \"dua \", \"tiga \", \"empat \", \"lima \", \"enam \", \"tujuh \", \"lapan \", \"sembilan \", \"sepuluh \", \"sebelas \", \"dua belas \", \"tiga belas \", \"empat belas \", \"lima belas \", \"enam belas \", \"tujuh belas \", \"lapan belas \", \"sembilan belas \"]\n    tens = [\"\", \"\", \"dua puluh\", \"tiga puluh\", \"empat puluh\", \"lima puluh\", \"enam puluh\", \"tujuh puluh\", \"lapan puluh\", \"sembilan puluh\"]\n    units = [(\"kuatuordesilion\", 1_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000),(\"tredesilion\", 1_000_000_000_000_000_000_000_000_000_000_000_000_000_000),(\"duodesilion\", 1_000_000_000_000_000_000_000_000_000_000_000_000_000),(\"undesilion\", 1_000_000_000_000_000_000_000_000_000_000_000_000),(\"desilion\", 1_000_000_000_000_000_000_000_000_000_000_000),(\"nonilion\", 1_000_000_000_000_000_000_000_000_000_000),(\"oktilion\", 1_000_000_000_000_000_000_000_000_000),(\"septilion\", 1_000_000_000_000_000_000_000_000),(\"sekstilion\", 1_000_000_000_000_000_000_000),(\"kuintilion\", 1_000_000_000_000_000_000), (\"kuadrilion\", 1_000_000_000_000_000), (\"trilion\", 1_000_000_000_000), (\"bilion\", 1_000_000_000), (\"juta\", 1_000_000), (\"ribu\", 1_000), (\"ratus\", 100), (\"\", 1)]\n\n    # function to convert numbers less than 1000 to words\n    def words(Z15567K1):\n        if Z15567K1 == 0:\n            return \"\"\n        elif Z15567K1 \u003C= 19:\n            return ones[Z15567K1]\n        elif Z15567K1 \u003C= 99:\n            tens_unit = tens[Z15567K1 // 10]\n            ones_unit = ones[Z15567K1 % 10]\n            return tens_unit + \" \" + ones_unit if ones_unit else tens_unit\n        else:\n            return ones[Z15567K1 // 100] + \"ratus \" + words(Z15567K1 % 100)\n\n    # convert numbers to words\n    if Z15567K1 == 0:\n        return \"sifar\"\n    elif Z15567K1 \u003C 0:\n        return \"negatif \" + Z15567(-Z15567K1)\n    else:\n        result = \"\"\n        for unit_name, factor in units:\n            count, Z15567K1 = divmod(Z15567K1, factor)\n            if count \u003E 999:\n                #ERROR: number is too large for this algorithm\n                Wikifunctions.Error(\"Z28307\",[str(input_value),\"999999999999999999999999999999999999999999999999\",\"ms\"])\n            if count \u003E 0:\n                if factor == 100:\n                    result = result + \" \" + ones[count] + unit_name\n                elif factor == 1:\n                    result = result + \" \" + words(count) + unit_name\n                else:\n                    result = result + \" \" + words(count) + unit_name\n        if (result.startswith(\" dan \")): result = result[5:]\n        return result.strip()"
        }
    },
    "Z2K3": {
        "Z1K1": "Z12",
        "Z12K1": [
            "Z11",
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1002",
                "Z11K2": "Malay cardinal, python"
            },
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1531",
                "Z11K2": "kardinal bahasa Melayu, python"
            },
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1434",
                "Z11K2": "کردينل بهاس ملايو، ڤايثون"
            },
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1004",
                "Z11K2": "cardinal en malais, en Python"
            },
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1430",
                "Z11K2": "Malaysische Kardinalzahl in Python"
            }
        ]
    },
    "Z2K4": {
        "Z1K1": "Z32",
        "Z32K1": [
            "Z31"
        ]
    },
    "Z2K5": {
        "Z1K1": "Z12",
        "Z12K1": [
            "Z11",
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1002",
                "Z11K2": "uses Malay-language names in Latin script for very large numbers"
            },
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1531",
                "Z11K2": "menggunakan nama bahasa Melayu dalam tulisan Rumi bagi nombor yang sangat besar"
            },
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1434",
                "Z11K2": "مڠݢوناکن نام بهاس ملايو دالم توليسن رومي باݢي نومبور يڠ سڠت بسر"
            },
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1430",
                "Z11K2": "Python-Implementierung der Funktion zur Ausgabe der Malaysischen Kardinalzahl"
            }
        ]
    }
}