public class Rept extends Fixed2ArgFunction
Syntax:
REPT (text,number_times )
Repeats text a given number of times. Use REPT to fill a cell with a number of instances of a text string. text : text The text that you want to repeat. number_times: A positive number specifying the number of times to repeat text. If number_times is 0 (zero), REPT returns "" (empty text). If this argument contains a decimal value, this function ignores the numbers to the right side of the decimal point. The result of the REPT function cannot be longer than 32,767 characters, or REPT returns #VALUE!.
(Excel REPT() 函数的实现。语法:REPT (text,number_times) 将文本重复给定次数。使用 REPT 用文本字符串的多个实例填充单元格。 text : text 要重复的文本。 number_times:一个正数,指定重复文本的次数。如果 number_times 为 0(零),则 REPT 返回“”(空文本)。如果此参数包含十进制值,则此函数将忽略小数点右侧的数字。 REPT 函数的结果不能超过 32,767 个字符,否则 REPT 返回 #VALUE!。)Constructor and Description |
---|
Rept() |
Modifier and Type | Method and Description |
---|---|
ValueEval |
evaluate(int srcRowIndex, int srcColumnIndex, ValueEval text, ValueEval number_times)
see
Function.evaluate(ValueEval[], int, int)
(见 Function.evaluate(ValueEval[], int, int))
|
evaluate
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval text, ValueEval number_times)
Function2Arg
Function.evaluate(ValueEval[], int, int)
(见 Function.evaluate(ValueEval[], int, int))
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.