ഫലകം:Hex2dec

വിക്കിപീഡിയ, ഒരു സ്വതന്ത്ര വിജ്ഞാനകോശം.

0

[തിരുത്തുക] [പുതുക്കുക] ഫലകത്തിന്റെ വിവരണം

Usage[തിരുത്തുക]

Works for all values in the range 0x000xFFFFFFFF.

  • {{hex2dec|0x0000}} → 0
  • {{hex2dec|0xA0}} → 160
  • {{hex2dec|0x7C0}} → 1984
  • {{hex2dec|0xFFFF}} → 65535
  • {{hex2dec|0x845FED}} → 8675309
  • {{hex2dec|0x75BCD15}} → 123456789
  • {{hex2dec|0xDEADBEEF}} → 3735928559
  • {{hex2dec|0xFFFFFFFF}} → 4294967295

The template also accepts lowercase and padded hexadecimals with or without the prefix "0x":

  • {{hex2dec|0xa0}} → 160
  • {{hex2dec|a0}} → 160
  • {{hex2dec|0x00A0}} → 160
  • {{hex2dec|A0}} → 160

Technical details[തിരുത്തുക]

This template works in conjunction with the following subtemplates:

  • {{Hex2dec/main}}: does the actual multiplication and addition to create a decimal number.
  • {{Hex2dec/1}}: returns the length of the hexadecimal string.
  • {{Hex2dec/2}}: converts individual hexadecimal characters into their decimal equivalent.

See also[തിരുത്തുക]

"https://ml.wikipedia.org/w/index.php?title=ഫലകം:Hex2dec&oldid=2023012" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്