public class Roman extends Fixed2ArgFunction
Syntax:
Roman (number,form)
Converts an arabic numeral to roman, as text.
Number Required. The Arabic numeral you want converted.
Form Optional. A number specifying the type of roman numeral you want. The roman numeral style ranges from Classic to Simplified, becoming more concise as the value of form increases.
Return_type a roman numeral, as text
(Excel Roman() 函数的实现。语法:Roman (number,form) 将阿拉伯数字转换为罗马文本,作为文本。数量 必填。要转换的阿拉伯数字。形式可选。一个数字,指定您想要的罗马数字的类型。罗马数字风格从经典到简体,随着形式价值的增加而变得更加简洁。 return_type 一个罗马数字,作为文本)Constructor and Description |
---|
Roman() |
Modifier and Type | Method and Description |
---|---|
ValueEval |
evaluate(int srcRowIndex, int srcColumnIndex, ValueEval numberVE, ValueEval formVE)
see
Function.evaluate(ValueEval[], int, int)
(见 Function.evaluate(ValueEval[], int, int))
|
java.lang.String |
makeConcise(java.lang.String input, int form)
Use conversion rule to factor some parts and make them more concise
(使用转换规则分解某些部分并使其更简洁)
|
evaluate
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval numberVE, ValueEval formVE)
Function2Arg
Function.evaluate(ValueEval[], int, int)
(见 Function.evaluate(ValueEval[], int, int))
public java.lang.String makeConcise(java.lang.String input, int form)
input
- the input string
(input - 输入字符串)
form
- the level of conciseness [0..4] with 4 being most concise and simplified
(form - 简洁程度 [0..4],其中 4 最简洁和简化)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.