Difference between revisions of "Manuals/calci/REPT"
Jump to navigation
Jump to search
Line 43: | Line 43: | ||
| class="sshl_f" |++++ | | class="sshl_f" |++++ | ||
|} | |} | ||
+ | |||
+ | ==Related Videos== | ||
+ | |||
+ | {{#ev:youtube|FdU_UTBUMfc|280|center|REPT}} | ||
== See Also == | == See Also == | ||
Line 50: | Line 54: | ||
==References== | ==References== | ||
+ | *[http://en.wikipedia.org/wiki/Repetition_(rhetorical_device) REPETITION] |
Revision as of 08:18, 29 April 2015
REPT(txt, numt)
- where is a text that is to be repeated
- is a positive number that specifies how many number of times to repeat the text.
REPT() repeats a text for specified number of times.
Description
REPT(txt, numt)
For Example,
REPT("*",5) returns *****
- should be enclosed in quotes.
- should be a positive number, else Calci ignores it and returns an empty text ("").
- If is equal to zero, Calci returns an empty text ("").
- If is a non-integer, Calci rounds it and displays the output.
Example
Function | Output |
REPT("ABCD*",4) | ABCD*ABCD*ABCD*ABCD* |
REPT("<>",3) | <><><> |
REPT("JOHN",0.2) | JOHN |
REPT("+",3.6) | ++++ |