Difference between revisions of "Documentation/How Tos/Calc: REPT function"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Initial content)
 
m (Syntax:)
Line 6: Line 6:
 
=== Syntax: ===
 
=== Syntax: ===
 
<tt>'''REPT(text; number)'''</tt>
 
<tt>'''REPT(text; number)'''</tt>
: returns <tt>'''number'''</tt> copies of <tt>'''text'''</tt>, concatenated together.
+
: returns <tt>'''number'''</tt> copies of <tt>'''text'''</tt>, joined together.
  
 
=== Example: ===
 
=== Example: ===

Revision as of 06:04, 31 December 2007


REPT

returns a text string comprised of copies of another text string.

Syntax:

REPT(text; number)

returns number copies of text, joined together.

Example:

REPT("ha"; 3)

returns hahaha.

See also:

CONCATENATE

Text functions

Personal tools