• 首页
  • 随机
  • 登录
  • 设置
  • 关于轻之舟百科
  • 免责声明
轻之舟百科

模板:Cipher

  • 语言
  • 监视
  • 编辑
模板文档

This template extracts one digit from an integer value of up to 12 digits.

Usage

{{Cipher|{{{1}}}|{{{2}}}}}

The first parameter is the integer value, the second is the position of the digit, from right to left (one, tenth, hundreds etc.).

Having a value above the number of digits, a zero is returned.

Examples

{{Cipher|9876543210|0}} results in 0.

{{Cipher|9876543210|9}} results in 9.

{{Cipher|123456789|0}} results in 9.

{{Cipher|123456789|8}} results in 1.

{{Cipher|432109876543210|12}} results in 2.

{{Cipher|432109876543210|13}} results in 0!

Note

This template is used by templates with mathematical terms and therefore appears to be integrated in very few pages.

编者可以在本模板的沙盒(创建 | 镜像)和测试样例(创建)页面进行实验。
本模板的子页面。
检索自“https://130.wiki/index.php?title=Template:Cipher&oldid=15690”
最后编辑于2022年6月25日 (星期六) 17:59

语言

  • 不转换
  • 简体
  • 繁體
  • 大陆简体
  • 香港繁體
  • 澳門繁體
  • 大马简体
  • 新加坡简体
  • 臺灣正體
轻之舟百科
  • A CaelLab Project
  • 此页面最后编辑于2022年6月25日 (星期六) 17:59。
  • 除非另有声明,本网站内容采用CC BY-SA 4.0 (2026年8月3日前创建的内容以CaelLab BY-SA Content License授权)授权。
  • 此页面已被访问过23次。
  • 隐私政策
  • 关于轻之舟百科
  • 免责声明
  • 隐私权政策
  • 方针
  • 版权
  • Donate now
  • 桌面版