Jump to content
Main menu
Main menu
move to sidebar
hide
Tšwelotšo
Letlakala la pele
Sebaka sa badudi
Diphetogo tša bjale
Letlakala le lengwe le le lengwe
Thušo
Matlakala a kgethegilego
Fetleka
Fetleka
Appearance
Dineelo
Bula tšhupaleloko
Tsena
Dithulusu tša gago (''personal'')
Dineelo
Bula tšhupaleloko
Tsena
Pages for logged out editors
learn more
Contributions
Poledišano
O fetola
Module:BaseConvert/doc
Add languages
Module
Poledišano
Sesotho sa Leboa
Bala
Edit source
Laetša histori
Dithulusu
Tools
move to sidebar
hide
Actions
Bala
Edit source
Laetša histori
General
Ke eng yeo e hlomaganyago mo
Diphetogo tša go tswalana
Lokela Faele
Tsebo ya Letlakala
Get shortened URL
Download QR code
Appearance
move to sidebar
hide
Temošo:
Gawa
tsena
, IP ya gago e tla šumišwa go histori ya diphetogo tša letlakala. Ge o ka
tsena
goba wa
tlhoma tšhupaleloko
,diphetogo tša gago di tla šumiša leina la gago.
Anti-spam check. Do
not
fill this in!
Converts numbers to a specified base between 2 and 36, for use in templates such as {{tl|binary}}, {{tl|octal}}, {{tl|hexadecimal}}, etc. Example usage: <syntaxhighlight lang="lua"> local BaseConvert = require('Module:BaseConvert') BaseConvert.convert({n = 14600926, base = 16}) -- returns 'DECADE' </syntaxhighlight> Arguments: *'''n''' - (required) the number to be converted, as a string. It may be a number instead, if the input base is 10. *'''base''' - (required) the base to which the number should be converted. May be between 2 and 36, inclusive. *'''from''' - the base of the input. Defaults to 10 (or 16 if the input has a leading '0x'). Note that bases other than 10 are not supported if the input has a fractional part. *'''precision''' - number of digits to be rendered after the radix point. Trailing zeros will be added if needed. If not specified, however many digits are needed will be shown, up to 10. *'''width''' - minimum number of digits to be rendered before the radix point. Leading zeros will be added if needed. *'''default''' - Value to return if n is empty or non-numeric. Defaults to the value of n. *'''prefix''' / '''suffix''' - wikitext to add before/after the returned result. Will not be added if n is empty or non-numeric. For example, you might use a prefix of <code>0x</code> when converting to hex, or a suffix of <code><nowiki><sub>8</sub></nowiki></code> when converting to octal.
Kakaretšo:
By saving changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Khansela
Thušo ya go fetola
(e bula lefastere le lempsha)
Preview page with this template
"Template yeo e
šomišitšwego letlakaleng le:
Template:Tl
(
Fetola
)
Fetleka
Fetleka
O fetola
Module:BaseConvert/doc
Add languages
Lokela sererwa