Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Template:Decimal2Base

From Wikipedia, the free encyclopedia

{{{1}}}

Template documentation[view] [edit] [history] [purge]
This template usesLua:

This template converts numbers from decimal to a given base.

Usage

[edit]

Use:{{Decimal2Base|n|radix}}where n is the number in decimal and radix is the base you want to convert to.

Examples:{{Decimal2Base|42|3}}yields 1120.

{{Decimal2Base|{{#expr: 6 * 9}}|13}}yields 42.

{{Decimal2Base|58|16}}yields 3A.

See also

[edit]
Math templates
  • Functions
  • Numeral systems
Functions
Numeral systems
Conversions
convert many units (see:list)
cvt abbreviated{{convert}}
convinfobox{{convert}} for infoboxes
bbl to t barrels of oil to tonnes
long ton long hundredweights, quarters and pounds to kilograms;
long tons and hundredweights to pounds and metric tons
miles-chains miles and chains to kilometres linking "chains"
decdeg degrees, minutes, and seconds todecimal degrees
deg2dms decimal degrees to degrees, minutes, and seconds
deg2hms decimal degrees tohour angle (in hours, minutes, and seconds)
hms2deghour angle (in hours, minutes, and seconds) to decimal degrees
inflation calculate inflation of Consumer Price Index-related prices
pop density population density in an area
track gauge railway track gauges
Notation andformatting
bigmath bigger font to matchTeX\displaystyle (standalone formulas only)math short text-based formulas
mathcal [mathematical] calligraphic font; alternative toLaTeX\mathcal{...}tombstone symbol indicating theend of a proof
mvar individual italicized maths variables in normal textval measurement values, uncertainties and units
a line set above/below a sequence of charactersvec various overarrows, underarrows, etc.
abs absolute values (paired vertical lines)
  • langle
  • rangle
  • angbr
  • angular brackets
  • bra-ket
  • braket
  • bra
  • ket
  • bra–ket notation
  • ldelim
  • rdelim
  • multiline delimiters (2–5 lines inclusive)
    ceil,floor calculations:mw:Help:#expr; formatting indicators3.14,3.14 (no calculation performed)pars parentheses that can be resized()
    fraction slant fractions35 (not for maths/science articles; usestanding or upright fractions{{sfrac}} instead)sfrac "standing" or upright fractions3/5 (use in maths/science articles instead of{{fraction}})
    intmathintegral symbols
  • sub
  • sup
  • su
  • subscripts and superscripts
  • overset
  • underset
  • arbitrary characters/diacritics set above/below one another    
    tmath WrapTeX in<math> tags
  • Boxes
  • Tags
  • Notices
  • The abovedocumentation istranscluded fromTemplate:Decimal2Base/doc.(edit |history)
    Editors can experiment in this template's sandbox(create |mirror) and testcases(create) pages.
    Add categories to the/doc subpage.Subpages of this template.
    Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Decimal2Base&oldid=540015492"
    Categories:
    Hidden category:

    [8]ページ先頭

    ©2009-2025 Movatter.jp