Knowledge (XXG)

Module:Formatnum

Source 📝

21: 1108: 104:
Most functions in the module have a version for Lua and a version for #invoke. It is possible to use the #invoke functions from other Lua modules, but using the Lua functions has the advantage that you do not need to access a Lua
61:
To use the module from normal wiki pages, no special preparation is needed. If you are using the module from another Lua module, first you need to load it, like this:
1175: 568: 106: 1160: 1148: 206: 36: 3192:-- Append the localized base-10 exponent without grouping separators (there's no reliable way to detect a localized leading symbol 'E') 1054: 2179:-- Check the presence of an exponent (incorrectly managed in mw.language:FormatNum() and even forgotten due to an internal bug, e.g. in Hindi) 1186: 1144: 32: 1130: 1179: 1519:-- In addition, they do not contain any capital letter in order to be unique in page titles (restriction inexistant in BCP47), 1111: 1044: 385: 249: 40: 1663:-- substitution of decimal digits for languages not supported by mw.language:formatNum() in core Lua libraries for MediaWiki 647: 1512:-- But they all are ValidLanguageCodes (suitable as Wiki subpages or identifiers: no slash, colon, HTML tags, or entities) 1498:-- Note that 'SupportedLanguages' are not necessarily 'BuiltinValidCodes', and so they are not necessarily 199: 47:
This module provides a number formatting function. This function can be used from #invoke or from other Lua modules.
1170: 1505:-- 'KnownLanguages' (with a language name defined at least in the default localisation of the local wiki). 1155: 1080: 1075: 3550:-- Special cases for substitution of ASCII digits (missing support in Lua core libraries for some languages) 192: 965: 726: 1533:-- Empty/unspecified and unsupported languages are treated here in Commons using the user's language, 453: 301: 630: 1200:-- This module is intended to replace the functionality of Template:Formatnum and related templates. 1138: 539: 529: 412: 311: 28: 1526:-- but they may violate the standard format of BCP47 language tags for specific needs in MediaWiki. 321: 265: 51: 1070: 1059: 959: 818: 519: 341: 282: 254: 1134: 1049: 906: 845: 813: 669: 441: 431: 840: 829: 776: 703: 608: 585: 506: 492: 482: 420: 402: 379: 336: 306: 745: 740: 721: 716: 708: 613: 475: 469: 296: 939: 881: 692: 641: 331: 316: 856: 802: 766: 637: 1426:-- only for back-compatibility ("arabic-indic" is not a SupportedLanguage) 982: 972: 923: 918: 756: 623: 618: 393: 259: 2078:-- Do not alter the specified value when it is not a valid number, return it as is 1116: 928: 326: 2819:-- Convert number to localized digits, decimal separator, and group separators 511: 498: 15: 3390:-- TODO: rounding of last decimal; here only truncate decimals in excess 3101:-- TODO: rounding of last decimal; here only truncate decimals in excess 732: 1404:-- validate the language parameter within MediaWiki's caller frame 101:
ormatnum; you can choose something more descriptive if you prefer.)
783: 184: 1008: 565: 362: 224: 188: 2959:-- caveat: can load localized resources for up to 20 languages 2915:-- caveat: can load localized resources for up to 20 languages 1540:-- instead of the local 'ContentLanguage' of the Wiki. 946: 592: 851:
arbitrary characters/diacritics set above/below one another
2464:-- discard an incorrect precision (not a positive integer) 524:
calculate inflation of Consumer Price Index-related prices
2664:-- effective number of trailing decimals to add or remove 2524:-- Preprocess the minimum precision in the ASCII string 1164: 448:
long tons and hundredweights to pounds and metric tons
446:
long hundredweights, quarters and pounds to kilograms;
807:
individual italicized maths variables in normal text
514:(in hours, minutes, and seconds) to decimal degrees 274: 242: 2499:-- maximum precision supported by tostring(number) 2146:-- Basic ASCII-only formatting (without paddings) 487:decimal degrees to degrees, minutes, and seconds 824:a line set above/below a sequence of characters 458:miles and chains to kilometres linking "chains" 200: 8: 977:measurement values, uncertainties and units 1029: 1024: 1005: 751:multiline delimiters (2–5 lines inclusive) 562: 359: 239: 221: 207: 193: 185: 902:(use in maths/science articles instead of 834:an arc set above a sequence of characters 2388:-- nil if not specified as a true number 2363:-- Check the minimum precision requested 1154:Editors can experiment in this module's 761:absolute values (paired vertical lines) 1442:-- better support than "ks" 987:various overarrows, underarrows, etc. 684:(not for maths/science articles; use 113:, whereas #invoke functions are not. 7: 781:calligraphic font; alternative to 14: 1577:-- get user's chosen language 474:degrees, minutes, and seconds to 2749:-- don't alter the precision 1107: 1106: 886:"standing" or upright fractions 861:parentheses that can be resized 501:(in hours, minutes, and seconds) 109:. Lua functions are preceded by 19: 3293:-- Postprocessing the precision 2973:-- Postprocessing the precision 3481:-- Append the base-10 exponent 121:{{#invoke:Formatnum|main| 1: 1055:Infobox mathematical function 534:population density in an area 3286:-- not localized, ASCII only 934:subscripts and superscripts 3721: 3698: 3694: 3687: 3677: 3673: 3666: 3659: 3601: 3567: 3554: 3547: 3543: 3536: 3529: 3504: 3485: 3478: 3474: 3467: 3394: 3387: 3368: 3316: 3297: 3290: 3280: 3273: 2608:-- plain search, no regexp 1128: 664:(no calculation performed) 601:(standalone formulas only) 81:'Module:Formatnum' 57:Use from other Lua modules 3215: 3196: 3189: 3185: 3178: 3105: 3098: 3079: 3027: 2996: 2977: 2970: 2963: 2926: 2919: 2867: 2854: 2823: 2816: 2764: 2760: 2753: 2737: 2721: 2714: 2707: 2691: 2684: 2668: 2631: 2612: 2569: 2538: 2528: 2521: 2517: 2510: 2503: 2487: 2468: 2452: 2433: 2411: 2392: 2367: 2360: 2356: 2349: 2336: 2329: 2289: 2243: 2224: 2193: 2183: 2176: 2172: 2150: 2143: 2136: 2126: 2107: 2082: 2075: 2071: 2028: 2024: 2017: 1947: 1877: 1807: 1737: 1667: 1648: 1644: 1637: 1588: 1581: 1544: 1537: 1530: 1523: 1516: 1509: 1502: 1495: 1446: 1430: 1408: 1401: 1102: 1027: 1023: 1004: 771:short text-based formulas 575: 561: 369: 358: 238: 220: 1420:"arabic-indic" 1367: 1333: 1305: 1277: 1249: 1224: 1220: 1204: 1197: 1194: 650:; formatting indicators 436:barrels of oil to tonnes 262: (value formatting) 139: 63: 1187:Subpages of this module 50:This module is used by 964:symbol indicating the 1045:arithmetic operations 688:or upright fractions 590:bigger font to match 250:elementary arithmetic 2733:-- don't add dot 1139:Module:Formatnum/doc 544:railway track gauges 93:variable stands for 24:Module documentation 1479:isSupportedLanguage 497:decimal degrees to 283:#invoke:BaseConvert 52:Module:Complex date 2794:isKnownLanguageTag 2680:-- already present 1559:callParserFunction 1125: 1124: 1098: 1097: 1094: 1093: 1089: 1088: 1000: 999: 995: 994: 991: 990: 795: 794: 557: 556: 552: 551: 548: 547: 462: 461: 384:many units (see: 354: 353: 350: 349: 3712: 3706: 3705: 3702: 3696: 3692: 3691: 3685: 3684: 3681: 3675: 3671: 3670: 3664: 3663: 3657: 3656: 3653: 3650: 3647: 3644: 3641: 3638: 3635: 3632: 3629: 3626: 3623: 3620: 3617: 3614: 3611: 3608: 3605: 3599: 3598: 3595: 3592: 3589: 3586: 3583: 3580: 3577: 3574: 3571: 3565: 3564: 3561: 3558: 3552: 3551: 3545: 3541: 3540: 3534: 3533: 3527: 3526: 3523: 3520: 3517: 3514: 3511: 3508: 3502: 3501: 3498: 3495: 3492: 3489: 3483: 3482: 3476: 3472: 3471: 3465: 3464: 3461: 3458: 3455: 3452: 3449: 3446: 3443: 3440: 3437: 3434: 3431: 3428: 3425: 3422: 3419: 3416: 3413: 3410: 3407: 3404: 3401: 3398: 3392: 3391: 3385: 3384: 3381: 3378: 3375: 3372: 3366: 3365: 3362: 3359: 3356: 3353: 3350: 3347: 3344: 3341: 3338: 3335: 3332: 3329: 3326: 3323: 3320: 3314: 3313: 3310: 3307: 3304: 3301: 3295: 3294: 3288: 3287: 3284: 3278: 3277: 3271: 3270: 3267: 3264: 3261: 3258: 3255: 3252: 3249: 3246: 3243: 3240: 3237: 3234: 3231: 3228: 3225: 3222: 3219: 3213: 3212: 3209: 3206: 3203: 3200: 3194: 3193: 3187: 3183: 3182: 3176: 3175: 3172: 3169: 3166: 3163: 3160: 3157: 3154: 3151: 3148: 3145: 3142: 3139: 3136: 3133: 3130: 3127: 3124: 3121: 3118: 3115: 3112: 3109: 3103: 3102: 3096: 3095: 3092: 3089: 3086: 3083: 3077: 3076: 3073: 3070: 3067: 3064: 3061: 3058: 3055: 3052: 3049: 3046: 3043: 3040: 3037: 3034: 3031: 3025: 3024: 3021: 3018: 3015: 3012: 3009: 3006: 3003: 3000: 2994: 2993: 2990: 2987: 2984: 2981: 2975: 2974: 2968: 2967: 2961: 2960: 2957: 2954: 2951: 2948: 2945: 2942: 2939: 2936: 2933: 2930: 2924: 2923: 2917: 2916: 2913: 2910: 2907: 2904: 2901: 2898: 2895: 2892: 2889: 2886: 2883: 2880: 2877: 2874: 2871: 2865: 2864: 2861: 2858: 2852: 2851: 2848: 2845: 2842: 2839: 2836: 2833: 2830: 2827: 2821: 2820: 2814: 2813: 2810: 2807: 2804: 2801: 2798: 2795: 2792: 2789: 2786: 2783: 2780: 2777: 2774: 2771: 2768: 2762: 2758: 2757: 2751: 2750: 2747: 2744: 2741: 2735: 2734: 2731: 2728: 2725: 2719: 2718: 2712: 2711: 2705: 2704: 2703:-- must be added 2701: 2698: 2695: 2689: 2688: 2682: 2681: 2678: 2675: 2672: 2666: 2665: 2662: 2659: 2656: 2653: 2650: 2647: 2644: 2641: 2638: 2635: 2629: 2628: 2625: 2622: 2619: 2616: 2610: 2609: 2606: 2603: 2600: 2597: 2594: 2591: 2588: 2585: 2582: 2579: 2576: 2573: 2567: 2566: 2563: 2560: 2557: 2554: 2551: 2548: 2545: 2542: 2536: 2535: 2532: 2526: 2525: 2519: 2515: 2514: 2508: 2507: 2501: 2500: 2497: 2494: 2491: 2485: 2484: 2481: 2478: 2475: 2472: 2466: 2465: 2462: 2459: 2456: 2450: 2449: 2446: 2443: 2440: 2437: 2431: 2430: 2427: 2424: 2421: 2418: 2415: 2409: 2408: 2405: 2402: 2399: 2396: 2390: 2389: 2386: 2383: 2380: 2377: 2374: 2371: 2365: 2364: 2358: 2354: 2353: 2347: 2346: 2343: 2340: 2334: 2333: 2327: 2326: 2323: 2320: 2317: 2314: 2311: 2308: 2305: 2302: 2299: 2296: 2293: 2287: 2286: 2283: 2280: 2277: 2274: 2271: 2268: 2265: 2262: 2259: 2256: 2253: 2250: 2247: 2241: 2240: 2237: 2234: 2231: 2228: 2222: 2221: 2218: 2215: 2212: 2209: 2206: 2203: 2200: 2197: 2191: 2190: 2187: 2181: 2180: 2174: 2170: 2169: 2166: 2163: 2160: 2157: 2154: 2148: 2147: 2141: 2140: 2134: 2133: 2130: 2124: 2123: 2120: 2117: 2114: 2111: 2105: 2104: 2101: 2098: 2095: 2092: 2089: 2086: 2080: 2079: 2073: 2069: 2068: 2065: 2062: 2059: 2056: 2053: 2050: 2047: 2044: 2041: 2038: 2035: 2032: 2026: 2022: 2021: 2015: 2014: 2011: 2008: 2005: 2002: 1999: 1996: 1993: 1990: 1987: 1984: 1981: 1978: 1975: 1972: 1969: 1966: 1963: 1960: 1957: 1954: 1951: 1945: 1944: 1941: 1938: 1935: 1932: 1929: 1926: 1923: 1920: 1917: 1914: 1911: 1908: 1905: 1902: 1899: 1896: 1893: 1890: 1887: 1884: 1881: 1875: 1874: 1871: 1868: 1865: 1862: 1859: 1856: 1853: 1850: 1847: 1844: 1841: 1838: 1835: 1832: 1829: 1826: 1823: 1820: 1817: 1814: 1811: 1805: 1804: 1801: 1798: 1795: 1792: 1789: 1786: 1783: 1780: 1777: 1774: 1771: 1768: 1765: 1762: 1759: 1756: 1753: 1750: 1747: 1744: 1741: 1735: 1734: 1731: 1728: 1725: 1722: 1719: 1716: 1713: 1710: 1707: 1704: 1701: 1698: 1695: 1692: 1689: 1686: 1683: 1680: 1677: 1674: 1671: 1665: 1664: 1661: 1658: 1655: 1652: 1646: 1642: 1641: 1635: 1634: 1631: 1628: 1625: 1622: 1619: 1616: 1613: 1610: 1607: 1604: 1601: 1598: 1595: 1592: 1586: 1585: 1579: 1578: 1575: 1572: 1571:"lang" 1569: 1566: 1563: 1560: 1557: 1554: 1551: 1548: 1542: 1541: 1535: 1534: 1528: 1527: 1521: 1520: 1514: 1513: 1507: 1506: 1500: 1499: 1493: 1492: 1489: 1486: 1483: 1480: 1477: 1474: 1471: 1468: 1465: 1462: 1459: 1456: 1453: 1450: 1444: 1443: 1440: 1437: 1434: 1428: 1427: 1424: 1421: 1418: 1415: 1412: 1406: 1405: 1399: 1398: 1395: 1392: 1389: 1386: 1383: 1380: 1377: 1374: 1371: 1365: 1364: 1361: 1358: 1355: 1352: 1349: 1346: 1343: 1340: 1337: 1331: 1330: 1327: 1324: 1321: 1318: 1315: 1312: 1309: 1303: 1302: 1299: 1296: 1293: 1290: 1287: 1284: 1281: 1275: 1274: 1271: 1268: 1265: 1262: 1259: 1256: 1253: 1247: 1246: 1243: 1240: 1237: 1234: 1231: 1228: 1222: 1218: 1217: 1214: 1211: 1208: 1202: 1201: 1183: 1168: 1152: 1110: 1109: 1030: 1025: 1006: 953: 949: 911: 910: 901: 899: 898: 895: 892: 876: 875: 874: 871: 870: 866: 799: 798: 791: 790: 786: 733:angular brackets 709:integral symbols 697: 696: 683: 682: 678: 674:slant fractions 663: 662: 658: 653: 631:bra–ket notation 600: 599: 595: 582: 581: 578: 577: 563: 466: 465: 425: 419: 407: 401: 376: 375: 372: 371: 360: 240: 222: 209: 202: 195: 186: 176: 173: 170: 167: 164: 161: 158: 155: 152: 149: 146: 143: 112: 92: 85: 82: 79: 76: 73: 70: 67: 44: 25: 23: 22: 3720: 3719: 3715: 3714: 3713: 3711: 3710: 3709: 3708: 3707: 3703: 3700: 3697: 3693: 3689: 3686: 3682: 3679: 3676: 3672: 3668: 3665: 3661: 3658: 3654: 3651: 3648: 3645: 3642: 3639: 3636: 3633: 3630: 3627: 3624: 3621: 3618: 3615: 3612: 3609: 3606: 3603: 3600: 3596: 3593: 3590: 3587: 3584: 3581: 3578: 3575: 3572: 3569: 3566: 3562: 3559: 3556: 3553: 3549: 3546: 3542: 3538: 3535: 3531: 3528: 3524: 3521: 3518: 3515: 3512: 3509: 3506: 3503: 3499: 3496: 3493: 3490: 3487: 3484: 3480: 3477: 3473: 3469: 3466: 3462: 3459: 3456: 3453: 3450: 3447: 3444: 3441: 3438: 3435: 3432: 3429: 3426: 3423: 3420: 3417: 3414: 3411: 3408: 3405: 3402: 3399: 3396: 3393: 3389: 3386: 3382: 3379: 3376: 3373: 3370: 3367: 3363: 3360: 3357: 3354: 3351: 3348: 3345: 3342: 3339: 3336: 3333: 3330: 3327: 3324: 3321: 3318: 3315: 3311: 3308: 3305: 3302: 3299: 3296: 3292: 3289: 3285: 3282: 3279: 3275: 3272: 3268: 3265: 3262: 3259: 3256: 3253: 3250: 3247: 3244: 3241: 3238: 3235: 3232: 3229: 3226: 3223: 3220: 3217: 3214: 3210: 3207: 3204: 3201: 3198: 3195: 3191: 3188: 3184: 3180: 3177: 3173: 3170: 3167: 3164: 3161: 3158: 3155: 3152: 3149: 3146: 3143: 3140: 3137: 3134: 3131: 3128: 3125: 3122: 3119: 3116: 3113: 3110: 3107: 3104: 3100: 3097: 3093: 3090: 3087: 3084: 3081: 3078: 3074: 3071: 3068: 3065: 3062: 3059: 3056: 3053: 3050: 3047: 3044: 3041: 3038: 3035: 3032: 3029: 3026: 3022: 3019: 3016: 3013: 3010: 3007: 3004: 3001: 2998: 2995: 2991: 2988: 2985: 2982: 2979: 2976: 2972: 2969: 2965: 2962: 2958: 2955: 2952: 2949: 2946: 2943: 2940: 2937: 2934: 2931: 2928: 2925: 2921: 2918: 2914: 2911: 2908: 2905: 2902: 2899: 2896: 2893: 2890: 2887: 2884: 2881: 2878: 2875: 2872: 2869: 2866: 2862: 2859: 2856: 2853: 2849: 2846: 2843: 2840: 2837: 2834: 2831: 2828: 2825: 2822: 2818: 2815: 2811: 2808: 2805: 2802: 2799: 2796: 2793: 2790: 2787: 2784: 2781: 2778: 2775: 2772: 2769: 2766: 2763: 2759: 2755: 2752: 2748: 2745: 2742: 2739: 2736: 2732: 2729: 2726: 2723: 2720: 2716: 2713: 2709: 2706: 2702: 2699: 2696: 2693: 2690: 2686: 2683: 2679: 2676: 2673: 2670: 2667: 2663: 2660: 2657: 2654: 2651: 2648: 2645: 2642: 2639: 2636: 2633: 2630: 2626: 2623: 2620: 2617: 2614: 2611: 2607: 2604: 2601: 2598: 2595: 2592: 2589: 2586: 2583: 2580: 2577: 2574: 2571: 2568: 2564: 2561: 2558: 2555: 2552: 2549: 2546: 2543: 2540: 2537: 2533: 2530: 2527: 2523: 2520: 2516: 2512: 2509: 2505: 2502: 2498: 2495: 2492: 2489: 2486: 2482: 2479: 2476: 2473: 2470: 2467: 2463: 2460: 2457: 2454: 2451: 2447: 2444: 2441: 2438: 2435: 2432: 2428: 2425: 2422: 2419: 2416: 2413: 2410: 2406: 2403: 2400: 2397: 2394: 2391: 2387: 2384: 2381: 2378: 2375: 2372: 2369: 2366: 2362: 2359: 2355: 2351: 2348: 2344: 2341: 2338: 2335: 2331: 2328: 2324: 2321: 2318: 2315: 2312: 2309: 2306: 2303: 2300: 2297: 2294: 2291: 2288: 2284: 2281: 2278: 2275: 2272: 2269: 2266: 2263: 2260: 2257: 2254: 2251: 2248: 2245: 2242: 2238: 2235: 2232: 2229: 2226: 2223: 2219: 2216: 2213: 2210: 2207: 2204: 2201: 2198: 2195: 2192: 2188: 2185: 2182: 2178: 2175: 2171: 2167: 2164: 2161: 2158: 2155: 2152: 2149: 2145: 2142: 2138: 2135: 2131: 2128: 2125: 2121: 2118: 2115: 2112: 2109: 2106: 2102: 2099: 2096: 2093: 2090: 2087: 2084: 2081: 2077: 2074: 2070: 2066: 2063: 2060: 2057: 2054: 2051: 2048: 2045: 2042: 2039: 2036: 2033: 2030: 2027: 2023: 2019: 2016: 2012: 2009: 2006: 2003: 2000: 1997: 1994: 1991: 1988: 1985: 1982: 1979: 1976: 1973: 1970: 1967: 1964: 1961: 1958: 1955: 1952: 1949: 1946: 1942: 1939: 1936: 1933: 1930: 1927: 1924: 1921: 1918: 1915: 1912: 1909: 1906: 1903: 1900: 1897: 1894: 1891: 1888: 1885: 1882: 1879: 1876: 1872: 1869: 1866: 1863: 1860: 1857: 1854: 1851: 1848: 1845: 1842: 1839: 1836: 1833: 1830: 1827: 1824: 1821: 1818: 1815: 1812: 1809: 1806: 1802: 1799: 1796: 1793: 1790: 1787: 1784: 1781: 1778: 1775: 1772: 1769: 1766: 1763: 1760: 1757: 1754: 1751: 1748: 1745: 1742: 1739: 1736: 1732: 1729: 1726: 1723: 1720: 1717: 1714: 1711: 1708: 1705: 1702: 1699: 1696: 1693: 1690: 1687: 1684: 1681: 1678: 1675: 1672: 1669: 1666: 1662: 1659: 1656: 1653: 1650: 1647: 1643: 1639: 1636: 1632: 1629: 1626: 1623: 1620: 1617: 1614: 1611: 1608: 1605: 1602: 1599: 1596: 1593: 1590: 1587: 1583: 1580: 1576: 1573: 1570: 1567: 1565:"int" 1564: 1561: 1558: 1555: 1552: 1549: 1546: 1543: 1539: 1536: 1532: 1529: 1525: 1522: 1518: 1515: 1511: 1508: 1504: 1501: 1497: 1494: 1490: 1487: 1484: 1481: 1478: 1475: 1472: 1469: 1466: 1463: 1460: 1457: 1454: 1451: 1448: 1445: 1441: 1438: 1435: 1432: 1429: 1425: 1422: 1419: 1416: 1413: 1410: 1407: 1403: 1400: 1396: 1393: 1390: 1387: 1384: 1381: 1378: 1375: 1372: 1369: 1366: 1362: 1359: 1356: 1353: 1350: 1347: 1344: 1341: 1338: 1335: 1332: 1328: 1325: 1322: 1319: 1316: 1313: 1310: 1307: 1304: 1300: 1297: 1294: 1291: 1288: 1285: 1282: 1279: 1276: 1272: 1269: 1266: 1263: 1260: 1257: 1254: 1251: 1248: 1244: 1241: 1238: 1235: 1232: 1229: 1226: 1223: 1219: 1215: 1212: 1209: 1206: 1203: 1199: 1196: 1191: 1190: 1185: 1173: 1158: 1153: 1142: 1127: 1126: 1121: 1090: 1085: 1081:units attention 1076:undue precision 1064: 1019: 996: 951: 945: 904: 903: 896: 893: 890: 889: 887: 872: 868: 867: 864: 863: 862: 788: 787: 782: 690: 689: 680: 676: 675: 660: 656: 655: 651: 597: 596: 591: 571: 553: 476:decimal degrees 447: 423: 417: 405: 399: 365: 346: 275:Numeral systems 270: 234: 231:Numeral systems 216: 213: 183: 178: 177: 174: 171: 168: 165: 162: 159: 156: 153: 150: 147: 144: 141: 138: 119: 110: 90: 87: 86: 83: 80: 77: 74: 71: 68: 65: 59: 45: 26: 20: 18: 12: 11: 5: 3718: 3716: 1439:"fa" 1195: 1123: 1122: 1120: 1119: 1114: 1103: 1100: 1099: 1096: 1095: 1092: 1091: 1087: 1086: 1084: 1083: 1078: 1073: 1067: 1065: 1063: 1062: 1057: 1052: 1047: 1041: 1038: 1037: 1034: 1028: 1021: 1020: 1018: 1015: 1012: 1009: 1002: 1001: 998: 997: 993: 992: 989: 988: 985: 979: 978: 975: 969: 968: 966:end of a proof 962: 956: 955: 942: 936: 935: 932: 931: 926: 921: 914: 913: 884: 878: 877: 859: 853: 852: 849: 848: 843: 836: 835: 832: 826: 825: 822: 821: 816: 809: 808: 805: 796: 793: 792: 779: 773: 772: 769: 763: 762: 759: 753: 752: 749: 748: 743: 736: 735: 730: 729: 724: 719: 712: 711: 706: 700: 699: 672: 666: 665: 648::mw:Help:#expr 644: 634: 633: 628: 627: 626: 621: 616: 611: 603: 602: 588: 576: 573: 572: 566: 559: 558: 555: 554: 550: 549: 546: 545: 542: 536: 535: 532: 526: 525: 522: 516: 515: 509: 503: 502: 495: 489: 488: 485: 479: 478: 472: 463: 460: 459: 456: 450: 449: 444: 438: 437: 434: 428: 427: 415: 409: 408: 396: 390: 389: 382: 370: 367: 366: 363: 356: 355: 352: 351: 348: 347: 345: 344: 339: 334: 329: 324: 319: 314: 309: 304: 299: 294: 278: 276: 272: 271: 269: 268: 263: 257: 252: 246: 244: 236: 235: 233: 232: 229: 225: 218: 217: 215:Math templates 214: 212: 211: 204: 197: 189: 182: 179: 140: 120: 118: 115: 64: 58: 55: 17: 16: 13: 10: 9: 6: 4: 3: 2: 3717: 3699: 3695: 3688: 3678: 3674: 3667: 3660: 3602: 3568: 3555: 3548: 3544: 3537: 3530: 3505: 3486: 3479: 3475: 3468: 3395: 3388: 3369: 3317: 3298: 3291: 3281: 3274: 3216: 3197: 3190: 3186: 3179: 3106: 3099: 3080: 3028: 2997: 2978: 2971: 2964: 2927: 2920: 2868: 2855: 2824: 2817: 2765: 2761: 2754: 2738: 2722: 2715: 2708: 2692: 2685: 2669: 2632: 2613: 2570: 2539: 2529: 2522: 2518: 2511: 2504: 2488: 2469: 2453: 2434: 2412: 2393: 2368: 2361: 2357: 2350: 2337: 2330: 2290: 2244: 2225: 2194: 2184: 2177: 2173: 2151: 2144: 2137: 2127: 2108: 2083: 2076: 2072: 2029: 2025: 2018: 1948: 1878: 1808: 1738: 1668: 1649: 1645: 1638: 1589: 1582: 1545: 1538: 1531: 1524: 1517: 1510: 1503: 1496: 1447: 1431: 1409: 1402: 1368: 1334: 1306: 1278: 1250: 1225: 1221: 1205: 1198: 1193: 1188: 1181: 1177: 1172: 1166: 1162: 1157: 1150: 1146: 1140: 1136: 1132: 1131:documentation 1118: 1115: 1113: 1105: 1104: 1101: 1082: 1079: 1077: 1074: 1072: 1069: 1068: 1066: 1061: 1058: 1056: 1053: 1051: 1048: 1046: 1043: 1042: 1040: 1039: 1035: 1032: 1031: 1026: 1022: 1016: 1013: 1010: 1007: 1003: 986: 984: 981: 980: 976: 974: 971: 970: 967: 963: 961: 958: 957: 948: 943: 941: 938: 937: 933: 930: 927: 925: 922: 920: 917: 916: 915: 908: 885: 883: 880: 879: 860: 858: 855: 854: 850: 847: 844: 842: 839: 838: 837: 833: 831: 828: 827: 823: 820: 817: 815: 812: 811: 810: 806: 804: 801: 800: 797: 789:\mathcal{...} 785: 780: 778: 775: 774: 770: 768: 765: 764: 760: 758: 755: 754: 750: 747: 744: 742: 739: 738: 737: 734: 731: 728: 725: 723: 720: 718: 715: 714: 713: 710: 707: 705: 702: 701: 694: 687: 673: 671: 668: 667: 649: 646:calculations 645: 643: 639: 636: 635: 632: 629: 625: 622: 620: 617: 615: 612: 610: 607: 606: 605: 604: 598:\displaystyle 594: 589: 587: 584: 583: 580: 579: 574: 570: 567:Notation and 564: 560: 543: 541: 538: 537: 533: 531: 528: 527: 523: 521: 518: 517: 513: 510: 508: 505: 504: 500: 496: 494: 491: 490: 486: 484: 481: 480: 477: 473: 471: 468: 467: 464: 457: 455: 452: 451: 445: 443: 440: 439: 435: 433: 430: 429: 426:for infoboxes 422: 416: 414: 411: 410: 404: 397: 395: 392: 391: 387: 383: 381: 378: 377: 374: 373: 368: 361: 357: 343: 340: 338: 335: 333: 330: 328: 325: 323: 320: 318: 315: 313: 310: 308: 305: 303: 300: 298: 295: 292: 288: 284: 280: 279: 277: 273: 267: 264: 261: 258: 256: 253: 251: 248: 247: 245: 241: 237: 230: 227: 226: 223: 219: 210: 205: 203: 198: 196: 191: 190: 187: 180: 136: 132: 128: 124: 116: 114: 108: 102: 100: 96: 62: 56: 54: 53: 48: 42: 38: 34: 30: 1192: 952:<math> 909:}} 905:{{ 695:}} 691:{{ 685: 454:miles-chains 424:}} 418:{{ 406:}} 400:{{ 398:abbreviated 302:decimal2Base 293:}} 290: 286: 281:{{ 134: 130: 126: 122: 107:frame object 103: 98: 94: 88: 60: 49: 46: 3519:'E' 3355:'0' 3230:'E' 2909:'y' 2841:getLanguage 2700:'.' 2590:'.' 2578:string.find 2205:string.find 2010:'๙' 2004:'๘' 1998:'๗' 1992:'๖' 1986:'๕' 1980:'๔' 1974:'๓' 1968:'๒' 1962:'๑' 1956:'๐' 1940:'౯' 1934:'౮' 1928:'౭' 1922:'౬' 1916:'౫' 1910:'౪' 1904:'౩' 1898:'౨' 1892:'౧' 1886:'౦' 1870:'௯' 1864:'௮' 1858:'௭' 1852:'௬' 1846:'௫' 1840:'௪' 1834:'௩' 1828:'௨' 1822:'௧' 1816:'௦' 1800:'᠙' 1794:'᠘' 1788:'᠗' 1782:'᠖' 1776:'᠕' 1770:'᠔' 1764:'᠓' 1758:'᠒' 1752:'᠑' 1746:'᠐' 1730:'൯' 1724:'൮' 1718:'൭' 1712:'൬' 1706:'൫' 1700:'൪' 1694:'൩' 1688:'൨' 1682:'൧' 1676:'൦' 1135:transcluded 1117:Module:Math 540:track gauge 530:pop density 413:convinfobox 364:Conversions 312:hexadecimal 39:] [ 35:] [ 31:] [ 3497:'' 3208:'' 2730:'' 2677:'' 2652:string.len 2420:math.floor 2345:'' 2298:string.sub 2276:string.len 2252:string.sub 2217:'' 1630:'' 1458:'' 1397:'' 1363:'' 1329:'' 1301:'' 1129:The above 569:formatting 512:hour angle 499:hour angle 322:quaternary 266:percentage 3260:noCommafy 3242:formatNum 3014:formatNum 2941:formatNum 2903:noCommafy 2882:formatNum 2040:formatNum 1600:formatNum 1267:getParent 1171:testcases 1071:metricate 1060:functions 960:tombstone 819:underline 520:inflation 342:vigesimal 255:precision 243:Functions 228:Functions 148:formatNum 3634:tostring 3525:exponent 3491:exponent 3254:exponent 3248:tonumber 3236:language 3202:exponent 3008:language 2947:tonumber 2935:language 2888:tonumber 2876:language 2829:language 2788:language 2376:tonumber 2339:exponent 2246:exponent 2189:exponent 2159:tostring 2094:tonumber 2031:function 1473:language 1227:function 1112:Category 1050:calculus 907:fraction 846:underset 814:overline 698:instead) 686:standing 670:fraction 442:long ton 432:bbl to t 181:See also 3616:ustring 3150:ustring 3120:ustring 3054:ustring 2860:compact 2064:compact 1178:| 1163:| 1156:sandbox 1149:history 1147:| 1017:Notices 900:⁠ 888:⁠ 841:overset 830:overarc 777:mathcal 704:intmath 679:⁄ 609:bra-ket 586:bigmath 507:hms2deg 493:deg2hms 483:deg2dms 421:convert 403:convert 380:convert 337:ternary 307:hex2dec 75:require 37:history 3701:return 3683:number 3680:return 3628:number 3604:number 3585:ipairs 3513:number 3507:number 3451:number 3439:string 3421:number 3409:string 3397:number 3371:elseif 3343:string 3325:number 3319:number 3224:number 3218:number 3162:number 3132:number 3108:number 3082:elseif 3036:number 3030:number 2953:number 2929:number 2894:number 2870:number 2658:number 2584:number 2471:elseif 2304:number 2292:number 2282:number 2258:number 2211:number 2153:number 2132:number 2129:return 2100:number 2046:number 1606:number 1591:return 1449:elseif 1357:number 1339:number 1184:pages. 746:rdelim 741:ldelim 722:rangle 717:langle 652:⌈3.14⌉ 614:braket 470:decdeg 297:binary 97:odule 3591:digit 3560:digit 2999:local 2826:local 2531:local 2196:local 2186:local 2165:value 2113:value 2088:value 2085:local 1654:digit 1651:local 1553:frame 1370:local 1336:local 1308:local 1280:local 1261:frame 1252:local 1242:frame 1207:local 1137:from 1033:Boxes 1011:Boxes 944:Wrap 940:tmath 882:sfrac 784:LaTeX 727:angbr 693:sfrac 642:floor 332:roman 317:octal 131:prec= 127:lang= 89:(The 66:local 43:] 41:purge 27:[ 3622:gsub 3563:then 3500:then 3460:prec 3383:then 3377:< 3374:prec 3361:prec 3312:then 3306:> 3303:prec 3283:else 3266:true 3211:then 3171:prec 3094:then 3088:< 3085:prec 3072:prec 3066:zero 3002:zero 2992:then 2986:> 2983:prec 2922:else 2863:then 2847:lang 2812:then 2809:true 2800:lang 2770:lang 2740:prec 2717:else 2687:else 2646:prec 2634:prec 2627:then 2602:true 2565:then 2559:> 2547:prec 2490:prec 2483:then 2477:> 2474:prec 2455:prec 2448:then 2442:< 2439:prec 2426:prec 2414:prec 2407:then 2398:prec 2382:prec 2370:prec 2332:else 2239:then 2122:then 2058:prec 2052:lang 1618:prec 1612:lang 1547:lang 1491:then 1485:lang 1452:lang 1433:lang 1423:then 1414:lang 1391:lang 1385:args 1379:args 1373:lang 1351:args 1345:args 1317:args 1295:prec 1289:args 1283:prec 1273:args 1255:args 1236:main 1176:edit 1169:and 1165:diff 1161:edit 1145:edit 1036:Tags 1014:Tags 954:tags 857:pars 803:mvar 767:math 659:3.14 638:ceil 386:list 166:prec 160:lang 135:sep= 117:main 33:edit 29:view 3690:end 3669:end 3662:end 3570:for 3539:end 3532:end 3470:end 3445:len 3415:sub 3349:rep 3331:dot 3276:end 3257:),{ 3181:end 3156:len 3126:sub 3060:rep 3042:dot 2966:end 2779:and 2776:nil 2756:end 2724:dot 2710:end 2694:dot 2671:dot 2640:pos 2624:nil 2618:pos 2572:pos 2534:dot 2513:end 2506:end 2461:nil 2404:nil 2352:end 2316:pos 2264:pos 2236:nil 2230:pos 2199:pos 2139:end 2119:nil 1640:end 1624:sep 1584:end 1464:not 1323:sep 1311:sep 1270:(). 1180:run 1133:is 983:vec 973:val 950:in 947:TeX 924:sup 919:sub 757:abs 624:ket 619:bra 593:TeX 394:cvt 260:val 172:sep 137:}} 3649:), 3610:mw 3597:do 3582:in 3557:if 3522:.. 3516:.. 3494:~= 3488:if 3433:mw 3403:mw 3337:mw 3334:.. 3328:.. 3300:if 3269:}) 3233:.. 3227:.. 3205:~= 3199:if 3144:mw 3114:mw 3048:mw 3045:.. 3039:.. 2980:if 2956:)) 2912:}) 2897:), 2857:if 2835:mw 2806:== 2782:mw 2773:~= 2767:if 2621:~= 2615:if 2550:or 2541:if 2496:14 2480:14 2436:if 2401:~= 2395:if 2285:)) 2233:~= 2227:if 2116:== 2110:if 1943:}, 1873:}, 1803:}, 1733:}, 1627:~= 1467:mw 1461:or 1455:== 1417:== 1411:if 1394:or 1382:or 1360:or 1348:or 1326:or 1298:or 1216:{} 1141:. 929:su 654:, 640:, 327:rn 289:to 142:mf 91:mf 69:mf 3704:p 3655:) 3652:v 3646:1 3643:- 3640:i 3637:( 3631:, 3625:( 3619:. 3613:. 3607:= 3594:) 3588:( 3579:v 3576:, 3573:i 3510:= 3463:) 3457:+ 3454:) 3448:( 3442:. 3436:. 3430:, 3427:1 3424:, 3418:( 3412:. 3406:. 3400:= 3380:0 3364:) 3358:, 3352:( 3346:. 3340:. 3322:= 3309:0 3263:= 3251:( 3245:( 3239:: 3221:= 3174:) 3168:+ 3165:) 3159:( 3153:. 3147:. 3141:, 3138:1 3135:, 3129:( 3123:. 3117:. 3111:= 3091:0 3075:) 3069:, 3063:( 3057:. 3051:. 3033:= 3023:) 3020:0 3017:( 3011:: 3005:= 2989:0 2950:( 2944:( 2938:: 2932:= 2906:= 2900:{ 2891:( 2885:( 2879:: 2873:= 2850:) 2844:( 2838:. 2832:= 2803:) 2797:( 2791:. 2785:. 2746:0 2743:= 2727:= 2697:= 2674:= 2661:) 2655:( 2649:- 2643:+ 2637:= 2605:) 2599:, 2596:1 2593:, 2587:, 2581:( 2575:= 2562:0 2556:) 2553:0 2544:( 2493:= 2458:= 2445:0 2429:) 2423:( 2417:= 2385:) 2379:( 2373:= 2342:= 2325:) 2322:1 2319:- 2313:, 2310:1 2307:, 2301:( 2295:= 2279:( 2273:, 2270:1 2267:+ 2261:, 2255:( 2249:= 2220:) 2214:, 2208:( 2202:= 2168:) 2162:( 2156:= 2103:) 2097:( 2091:= 2067:) 2061:, 2055:, 2049:, 2043:( 2037:. 2034:p 2020:} 2013:} 2007:, 2001:, 1995:, 1989:, 1983:, 1977:, 1971:, 1965:, 1959:, 1953:{ 1950:= 1937:, 1931:, 1925:, 1919:, 1913:, 1907:, 1901:, 1895:, 1889:, 1883:{ 1880:= 1867:, 1861:, 1855:, 1849:, 1843:, 1837:, 1831:, 1825:, 1819:, 1813:{ 1810:= 1797:, 1791:, 1785:, 1779:, 1773:, 1767:, 1761:, 1755:, 1749:, 1743:{ 1740:= 1727:, 1721:, 1715:, 1709:, 1703:, 1697:, 1691:, 1685:, 1679:, 1673:{ 1670:= 1660:{ 1657:= 1633:) 1621:, 1615:, 1609:, 1603:( 1597:. 1594:p 1574:) 1568:, 1562:( 1556:: 1550:= 1488:) 1482:( 1476:. 1470:. 1436:= 1388:. 1376:= 1354:. 1342:= 1320:. 1314:= 1292:. 1286:= 1264:: 1258:= 1245:) 1239:( 1233:. 1230:p 1213:= 1210:p 1189:. 1182:) 1174:( 1167:) 1159:( 1151:) 1143:( 912:) 897:5 894:/ 891:3 873:) 869:∑ 865:( 681:5 677:3 661:⌋ 657:⌊ 388:) 291:Y 287:X 285:| 208:e 201:t 194:v 175:) 169:, 163:, 157:, 154:x 151:( 145:. 133:| 129:| 125:| 123:x 111:_ 99:F 95:M 84:) 78:( 72:=

Index

view
edit
history
purge
Module:Complex date
frame object
v
t
e
elementary arithmetic
precision
val
percentage
#invoke:BaseConvert
binary
decimal2Base
hex2dec
hexadecimal
octal
quaternary
rn
roman
ternary
vigesimal
convert
list
cvt
convert
convinfobox
convert

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.