WOLFRAM

FromRomanNumeral
FromRomanNumeral

FromRomanNumeral["string"]

ローマ数字"string"に対する整数を与える.

詳細

  • 数字は,大文字・小文字のどちらででも指定できる.

例題

すべて開くすべて閉じる

  (2)基本的な使用例

ローマ数字を十進法の整数に変換する:

Out[1]=1

リスト中のローマ数字を,それぞれ対応する十進法の整数に変換する:

Out[1]=1

スコープ  (3)標準的な使用例のスコープの概要

ローマ数字は,大文字,小文字,あるいは両者を組み合わせて与えることができる:

Out[1]=1
Out[2]=2
Out[3]=3

数字"N"は整数の0を表す:

Out[1]=1

FromRomanNumeralは数字のリストに自動的に縫い込まれる:

Out[1]=1

特性と関係  (2)この関数の特性および他の関数との関係

RomanNumeralは十進法の整数をそのローマ数字形に変換する:

Out[1]=1
Out[2]=2

FromRomanNumeral["string"]FromDigits["string","Roman"]に等しい:

Out[1]=1
Out[2]=2

考えられる問題  (1)よく起る問題と予期しない動作

FromRomanNumeralは,非標準的な形式のローマ数字を解釈することができる:

Out[1]=1
Out[2]=2

事実,有効数字の任意の組み合せが整数として解釈される:

Out[3]=3
Out[4]=4
Out[5]=5

与えられたローマ数字が標準的な形式で書かれているかどうかをチェックしたければ,RomanNumeralの出力と比較するとよい:

Out[6]=6
Wolfram Research (2015), FromRomanNumeral, Wolfram言語関数, https://reference.wolfram.com/language/ref/FromRomanNumeral.html.
Wolfram Research (2015), FromRomanNumeral, Wolfram言語関数, https://reference.wolfram.com/language/ref/FromRomanNumeral.html.

テキスト

Wolfram Research (2015), FromRomanNumeral, Wolfram言語関数, https://reference.wolfram.com/language/ref/FromRomanNumeral.html.

Wolfram Research (2015), FromRomanNumeral, Wolfram言語関数, https://reference.wolfram.com/language/ref/FromRomanNumeral.html.

CMS

Wolfram Language. 2015. "FromRomanNumeral." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/FromRomanNumeral.html.

Wolfram Language. 2015. "FromRomanNumeral." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/FromRomanNumeral.html.

APA

Wolfram Language. (2015). FromRomanNumeral. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FromRomanNumeral.html

Wolfram Language. (2015). FromRomanNumeral. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FromRomanNumeral.html

BibTeX

@misc{reference.wolfram_2025_fromromannumeral, author="Wolfram Research", title="{FromRomanNumeral}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/FromRomanNumeral.html}", note=[Accessed: 11-May-2025 ]}

@misc{reference.wolfram_2025_fromromannumeral, author="Wolfram Research", title="{FromRomanNumeral}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/FromRomanNumeral.html}", note=[Accessed: 11-May-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_fromromannumeral, organization={Wolfram Research}, title={FromRomanNumeral}, year={2015}, url={https://reference.wolfram.com/language/ref/FromRomanNumeral.html}, note=[Accessed: 11-May-2025 ]}

@online{reference.wolfram_2025_fromromannumeral, organization={Wolfram Research}, title={FromRomanNumeral}, year={2015}, url={https://reference.wolfram.com/language/ref/FromRomanNumeral.html}, note=[Accessed: 11-May-2025 ]}