• 首頁
  • 隨機
  • 登入
  • 設定
  • 關於轻之舟百科
  • 免責聲明
轻之舟百科

模板: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授权)之下可用
  • 此頁面已被存取過33 次。
  • 隱私權政策
  • 關於轻之舟百科
  • 免責聲明
  • 隱私權政策
  • 方針
  • 版權
  • Donate now
  • 桌面版