📄 inten.hlp
字号:
{smcl}
{* 10mar2005}{...}
{cmd:help inbase}, {cmd:help inten}{right:also see: {help undocumented}}
{hline}
{title:Title}
{p 4 16 2}
{hi:inbase} {hline 2} Base conversion
{title:Syntax}
{cmd:inbase} {it:#1} {it:#2}
{cmd:inten} {it:#1} {it:#2}
{phang}
where{break}
{it:#1} is the base and {it:#2} the number to be converted.{break}
{it:#1} must be between 2 and 62, inclusive.
{title:Description}
{pstd}
{cmd:inbase} converts decimal numbers to the specified base.
{pstd}
{cmd:inten} converts numbers of the specified base into decimal numbers.
{title:Examples}
{cmd:. inbase 16 29}
1d
{cmd:. inbase 2 29}
11101
{cmd:. inten 16 1d}
29
{cmd:. inten 2 11101}
29
{title:Saved results}
{cmd:inten} returns
scalar {cmd:r(ten)} containing number in base 10
{cmd:inbase} returns
local {cmd:r(base)} containing number in specified base
{title:Bugs}
{pstd}
{cmd:inten} does not verify that you do not use digits beyond the base.
For instance, you can type {cmd:inten 16 1g}.
{title:Also see}
Online: {help data types}, {helpb format}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -