Template:Binary
This template is for quickly converting a decimal number to binary.
Usage
Use {Binary|x|y}
where x is the decimal number and y is the decimal precision (positive numbers, defaults displays up to 10 digits following the binary point).
Examples:
Code
Result
Notes
{Binary|128892}
111110111011111002
Regular integer
{Binary|73.3333333|5}
1001001.010102
Truncated decimal
{Binary|73.3333333|0}
10010012
Truncated at decimal point
{Binary|73|5}
1001001.000002
Decimals padded to integer
{Binary|73.25}
1001001.012
Auto truncation
{Binary|73.25|4}
1001001.01002
Decimals padded
{Binary|{#expr:1+3/8}
1.0112
Expression support
Related pages
Math templates
Conversions
convert many units (see: list ) cvt many units; abbreviated { convert } convinfobox for use in 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 tonnes miles-chains miles and chains to kilometres linking "chains" rndfrac decimals to fractions
decdeg degrees, minutes, and seconds to decimal degrees deg2dms decimal degrees to degrees, minutes, and seconds deg2hms decimal degrees to hour angle (in hours, minutes, and seconds) hms2deg hour angle (in hours, minutes, and seconds) to decimal degrees inflation to calculate inflation of Consumer Price Index-related prices pop density density of a population in an area track gauge railway track gauges
Notation
bigmath for stand-alone formulas, using a bigger font to match \displaystyle PNG-rendered TeX formulas bra–ket notation frac for creating fractions 3 ⁄5 (not for use in science or mathematical articles; instead, use {sfrac }
) intmath integral symbols angular brackets multiline delimiters (2–5 lines inclusive) math for short inline formulas mathcal [mathematical] calligraphic font for use in mathematical formulas, as an alternative to \mathcal{...} in LaTeX markup
mvar a short form to refer to individual italicized maths variables in normal text arbitrary characters/diacritics set above/below one another radic Radic(al)s √2 sfrac for creating fractions 3 / 5 (this template should be used in science or mathematical articles instead of {frac }
) Subscripts and superscripts tmath wraps a TeX math expression in <math> tags val to report measurement values, uncertainties and units vec for various overarrows, underarrows, pointing left, right or both ways
Boxes Tags
calculation results
calculus
Infobox mathematics function
functions
Category
The article is a derivative under the Creative Commons Attribution-ShareAlike License .
A link to the original article can be found here and attribution parties here
By using this site, you agree to the Terms of Use . Gpedia ® is a registered trademark of the Cyberajah Pty Ltd