Knowledge (XXG)

Template:Hexadecimal

Source πŸ“

27: 1211: 58: 103:
where x is the decimal number to be converted to a hexadecimal. Decimals and fractions will be rounded down. The number is, by default, formatted with a final subscript 16 to display the base. An optional second parameter of
1306: 1278: 1263: 1251: 42: 671: 1290: 1247: 38: 1316: 309: 1311: 1157: 1233: 46: 1273: 1214: 1147: 488: 352: 750: 1258: 302: 119:), which also forces the display of at least two hexadecimal digits (instead of just one for values lower than 16). 75: 1286: 1241: 1183: 1178: 34: 295: 1068: 829: 556: 404: 733: 642: 632: 515: 122:
To show a single digit, without the subscript and without the 0 prefix, set the second parameter to
424: 368: 1173: 1162: 1062: 921: 622: 444: 385: 357: 71: 1237: 1152: 1009: 948: 916: 772: 544: 534: 943: 932: 879: 806: 711: 688: 609: 595: 585: 523: 505: 482: 439: 409: 280: 64: 848: 843: 824: 819: 811: 716: 578: 572: 399: 222: 1042: 984: 795: 744: 434: 419: 1300: 959: 905: 869: 740: 1085: 1075: 1026: 1021: 859: 726: 721: 496: 362: 1219: 1031: 429: 88: 614: 601: 21: 226: 835: 886: 287: 234:{{Hexadecimal|255|no}}{{Hexadecimal|165|no}}{{Hexadecimal|0|no}} 1111: 668: 465: 327: 291: 1049: 695: 52: 954:
arbitrary characters/diacritics set above/below one another
627:
calculate inflation of Consumer Price Index-related prices
1267: 111:
To opt out of the subscript, use a second parameter of
87:
This template makes it easy to convert from decimal to
551:
long tons and hundredweights to pounds and metric tons
549:
long hundredweights, quarters and pounds to kilograms;
910:
individual italicized maths variables in normal text
617:(in hours, minutes, and seconds) to decimal degrees 377: 345: 590:decimal degrees to degrees, minutes, and seconds 927:a line set above/below a sequence of characters 561:miles and chains to kilometres linking "chains" 1307:Templates based on the BaseConvert Lua module 303: 8: 1080:measurement values, uncertainties and units 1257:Editors can experiment in this template's 1132: 1127: 1108: 854:multiline delimiters (2–5 lines inclusive) 665: 462: 342: 324: 310: 296: 288: 1005:(use in maths/science articles instead of 937:an arc set above a sequence of characters 864:absolute values (paired vertical lines) 1090:various overarrows, underarrows, etc. 787:(not for maths/science articles; use 7: 166:To convert a number to a base hex: 884:calligraphic font; alternative to 134:To convert a number to a base 16: 108:will replace the base with "hex". 14: 577:degrees, minutes, and seconds to 1210: 1209: 989:"standing" or upright fractions 964:parentheses that can be resized 604:(in hours, minutes, and seconds) 56: 25: 1317:Mathematical function templates 1312:Numerical conversion templates 1: 1158:Infobox mathematical function 637:population density in an area 1037:subscripts and superscripts 1333: 1231: 767:(no calculation performed) 704:(standalone formulas only) 198:To display single digits: 1291:Subpages of this template 1205: 1130: 1126: 1107: 874:short text-based formulas 678: 664: 472: 461: 341: 323: 1242:Template:Hexadecimal/doc 753:; formatting indicators 539:barrels of oil to tonnes 365: (value formatting) 215:{{Hexadecimal|15|digit}} 209:{{Hexadecimal|10|digit}} 189:{{Hexadecimal|3256|hex}} 203:{{Hexadecimal|0|digit}} 1285:Add categories to the 1067:symbol indicating the 260:{{Hexadecimal|foobar}} 180:{{Hexadecimal|15|hex}} 30:Template documentation 1148:arithmetic operations 791:or upright fractions 693:bigger font to match 353:elementary arithmetic 225:from decimal code to 171:{{Hexadecimal|0|hex}} 647:railway track gauges 157:{{Hexadecimal|3256}} 63:This template uses 600:decimal degrees to 386:#invoke:BaseConvert 266:{{Hexadecimal|A B}} 241:Not a number input 148:{{Hexadecimal|15}} 72:Module:BaseConvert 1228: 1227: 1201: 1200: 1197: 1196: 1192: 1191: 1103: 1102: 1098: 1097: 1094: 1093: 898: 897: 660: 659: 655: 654: 651: 650: 565: 564: 487:many units (see: 457: 456: 453: 452: 139:{{Hexadecimal|0}} 115:(or equivalently 101:{{Hexadecimal|x}} 85: 84: 1324: 1282: 1271: 1255: 1213: 1212: 1133: 1128: 1109: 1056: 1052: 1014: 1013: 1004: 1002: 1001: 998: 995: 979: 978: 977: 974: 973: 969: 902: 901: 894: 893: 889: 836:angular brackets 812:integral symbols 800: 799: 786: 785: 781: 777:slant fractions 766: 765: 761: 756: 734:bra–ket notation 703: 702: 698: 685: 684: 681: 680: 666: 569: 568: 528: 522: 510: 504: 479: 478: 475: 474: 463: 343: 325: 312: 305: 298: 289: 284: 267: 261: 252: 246: 245:{{Hexadecimal|}} 235: 216: 210: 204: 190: 181: 172: 158: 149: 140: 125: 118: 114: 107: 102: 60: 59: 53: 50: 31: 29: 28: 1332: 1331: 1327: 1326: 1325: 1323: 1322: 1321: 1297: 1296: 1295: 1294: 1284: 1276: 1261: 1256: 1245: 1230: 1229: 1224: 1193: 1188: 1184:units attention 1179:undue precision 1167: 1122: 1099: 1054: 1048: 1007: 1006: 999: 996: 993: 992: 990: 975: 971: 970: 967: 966: 965: 891: 890: 885: 793: 792: 783: 779: 778: 763: 759: 758: 754: 700: 699: 694: 674: 656: 579:decimal degrees 550: 526: 520: 508: 502: 468: 449: 378:Numeral systems 373: 337: 334:Numeral systems 319: 316: 278: 275: 265: 259: 256: 251:{{Hexadecimal}} 250: 244: 233: 214: 208: 202: 194: 188: 185: 179: 176: 170: 162: 156: 153: 147: 144: 138: 132: 123: 116: 112: 105: 100: 97: 81: 57: 51: 32: 26: 24: 19: 12: 11: 5: 1330: 1328: 1320: 1319: 1314: 1309: 1299: 1298: 1226: 1225: 1223: 1222: 1217: 1206: 1203: 1202: 1199: 1198: 1195: 1194: 1190: 1189: 1187: 1186: 1181: 1176: 1170: 1168: 1166: 1165: 1160: 1155: 1150: 1144: 1141: 1140: 1137: 1131: 1124: 1123: 1121: 1118: 1115: 1112: 1105: 1104: 1101: 1100: 1096: 1095: 1092: 1091: 1088: 1082: 1081: 1078: 1072: 1071: 1069:end of a proof 1065: 1059: 1058: 1045: 1039: 1038: 1035: 1034: 1029: 1024: 1017: 1016: 987: 981: 980: 962: 956: 955: 952: 951: 946: 939: 938: 935: 929: 928: 925: 924: 919: 912: 911: 908: 899: 896: 895: 882: 876: 875: 872: 866: 865: 862: 856: 855: 852: 851: 846: 839: 838: 833: 832: 827: 822: 815: 814: 809: 803: 802: 775: 769: 768: 751::mw:Help:#expr 747: 737: 736: 731: 730: 729: 724: 719: 714: 706: 705: 691: 679: 676: 675: 669: 662: 661: 658: 657: 653: 652: 649: 648: 645: 639: 638: 635: 629: 628: 625: 619: 618: 612: 606: 605: 598: 592: 591: 588: 582: 581: 575: 566: 563: 562: 559: 553: 552: 547: 541: 540: 537: 531: 530: 518: 512: 511: 499: 493: 492: 485: 473: 470: 469: 466: 459: 458: 455: 454: 451: 450: 448: 447: 442: 437: 432: 427: 422: 417: 412: 407: 402: 397: 381: 379: 375: 374: 372: 371: 366: 360: 355: 349: 347: 339: 338: 336: 335: 332: 328: 321: 320: 318:Math templates 317: 315: 314: 307: 300: 292: 286: 285: 274: 271: 270: 269: 263: 257: 254: 248: 242: 238: 237: 221:To convert an 219: 218: 212: 206: 196: 195: 192: 186: 183: 177: 174: 164: 163: 160: 154: 151: 145: 142: 131: 128: 96: 93: 83: 82: 80: 79: 68: 61: 23: 22: 17: 13: 10: 9: 6: 4: 3: 2: 1329: 1318: 1315: 1313: 1310: 1308: 1305: 1304: 1302: 1292: 1288: 1280: 1275: 1269: 1265: 1260: 1253: 1249: 1243: 1239: 1235: 1234:documentation 1221: 1218: 1216: 1208: 1207: 1204: 1185: 1182: 1180: 1177: 1175: 1172: 1171: 1169: 1164: 1161: 1159: 1156: 1154: 1151: 1149: 1146: 1145: 1143: 1142: 1138: 1135: 1134: 1129: 1125: 1119: 1116: 1113: 1110: 1106: 1089: 1087: 1084: 1083: 1079: 1077: 1074: 1073: 1070: 1066: 1064: 1061: 1060: 1051: 1046: 1044: 1041: 1040: 1036: 1033: 1030: 1028: 1025: 1023: 1020: 1019: 1018: 1011: 988: 986: 983: 982: 963: 961: 958: 957: 953: 950: 947: 945: 942: 941: 940: 936: 934: 931: 930: 926: 923: 920: 918: 915: 914: 913: 909: 907: 904: 903: 900: 892:\mathcal{...} 888: 883: 881: 878: 877: 873: 871: 868: 867: 863: 861: 858: 857: 853: 850: 847: 845: 842: 841: 840: 837: 834: 831: 828: 826: 823: 821: 818: 817: 816: 813: 810: 808: 805: 804: 797: 790: 776: 774: 771: 770: 752: 749:calculations 748: 746: 742: 739: 738: 735: 732: 728: 725: 723: 720: 718: 715: 713: 710: 709: 708: 707: 701:\displaystyle 697: 692: 690: 687: 686: 683: 682: 677: 673: 670:Notation and 667: 663: 646: 644: 641: 640: 636: 634: 631: 630: 626: 624: 621: 620: 616: 613: 611: 608: 607: 603: 599: 597: 594: 593: 589: 587: 584: 583: 580: 576: 574: 571: 570: 567: 560: 558: 555: 554: 548: 546: 543: 542: 538: 536: 533: 532: 529:for infoboxes 525: 519: 517: 514: 513: 507: 500: 498: 495: 494: 490: 486: 484: 481: 480: 477: 476: 471: 464: 460: 446: 443: 441: 438: 436: 433: 431: 428: 426: 423: 421: 418: 416: 413: 411: 408: 406: 403: 401: 398: 395: 391: 387: 383: 382: 380: 376: 370: 367: 364: 361: 359: 356: 354: 351: 350: 348: 344: 340: 333: 330: 329: 326: 322: 313: 308: 306: 301: 299: 294: 293: 290: 282: 277: 276: 272: 264: 258: 249: 243: 240: 239: 232: 231: 230: 228: 224: 213: 207: 201: 200: 199: 187: 178: 169: 168: 167: 155: 146: 137: 136: 135: 129: 127: 120: 109: 94: 92: 90: 77: 73: 70: 69: 66: 62: 55: 54: 48: 44: 40: 36: 20: 1055:<math> 1012:}} 1008:{{ 798:}} 794:{{ 788: 557:miles-chains 527:}} 521:{{ 509:}} 503:{{ 501:abbreviated 414: 405:decimal2Base 396:}} 393: 389: 384:{{ 283:}} 279:{{ 220: 197: 165: 133: 121: 110: 98: 86: 15: 1238:transcluded 1220:Module:Math 643:track gauge 633:pop density 516:convinfobox 467:Conversions 415:hexadecimal 89:hexadecimal 45:] [ 41:] [ 37:] [ 1301:Categories 1232:The above 672:formatting 615:hour angle 602:hour angle 425:quaternary 369:percentage 1289:subpage. 1274:testcases 1174:metricate 1163:functions 1063:tombstone 922:underline 623:inflation 445:vigesimal 358:precision 346:Functions 331:Functions 223:RGB color 1215:Category 1153:calculus 1010:fraction 949:underset 917:overline 801:instead) 789:standing 773:fraction 545:long ton 535:bbl to t 273:See also 262:β†’ foobar 236:β†’ FFA500 227:hex code 130:Examples 1266:| 1259:sandbox 1252:history 1250:| 1120:Notices 1003:⁠ 991:⁠ 944:overset 933:overarc 880:mathcal 807:intmath 782:⁄ 712:bra-ket 689:bigmath 610:hms2deg 596:deg2hms 586:deg2dms 524:convert 506:convert 483:convert 440:ternary 410:hex2dec 281:Hex2dec 76:sandbox 43:history 1283:pages. 849:rdelim 844:ldelim 825:rangle 820:langle 755:⌈3.14βŒ‰ 717:braket 573:decdeg 400:binary 124:|digit 1240:from 1136:Boxes 1114:Boxes 1047:Wrap 1043:tmath 985:sfrac 887:LaTeX 830:angbr 796:sfrac 745:floor 435:roman 420:octal 268:β†’ A B 191:β†’ CB8 159:β†’ CB8 117:|none 99:Use: 95:Usage 49:] 47:purge 33:[ 1287:/doc 1279:edit 1272:and 1268:diff 1264:edit 1248:edit 1139:Tags 1117:Tags 1057:tags 960:pars 906:mvar 870:math 762:3.14 741:ceil 489:list 106:|hex 39:edit 35:view 1236:is 1086:vec 1076:val 1053:in 1050:TeX 1027:sup 1022:sub 860:abs 727:ket 722:bra 696:TeX 497:cvt 363:val 253:β†’ 0 217:β†’ F 211:β†’ A 205:β†’ 0 193:hex 184:hex 182:β†’ F 175:hex 173:β†’ 0 150:β†’ F 141:β†’ 0 113:|no 65:Lua 1303:: 1244:. 1032:su 757:, 743:, 430:rn 392:to 255:16 229:: 161:16 152:16 143:16 126:. 91:. 67:: 18:16 1293:. 1281:) 1277:( 1270:) 1262:( 1254:) 1246:( 1015:) 1000:5 997:/ 994:3 976:) 972:βˆ‘ 968:( 784:5 780:3 764:βŒ‹ 760:⌊ 491:) 394:Y 390:X 388:| 311:e 304:t 297:v 247:β†’ 78:) 74:( 16:0

Index

view
edit
history
purge
Lua
Module:BaseConvert
sandbox
hexadecimal
RGB color
hex code
Hex2dec
v
t
e
elementary arithmetic
precision
val
percentage
#invoke:BaseConvert
binary
decimal2Base
hex2dec
hexadecimal
octal
quaternary
rn
roman
ternary
vigesimal
convert

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

↑