Difference between revisions of "Manuals/calci/REPT"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div id="6SpaceContent" class="zcontent" align="left"> <font color="#484848"><font face="Arial, sans-serif"><font size="2">'''REPT'''</font></font></font><font color="#484848...")
 
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div id="6SpaceContent" class="zcontent" align="left"> <font color="#484848"><font face="Arial, sans-serif"><font size="2">'''REPT'''</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">(</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">'''txt'''</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">,</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">'''numt'''</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">)</font></font></font>
+
<div style="font-size:30px">'''REPT (Text,Number_Times) '''</div><br/>
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">'''where txt'''</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">   is the text that want to repeat and numt   is a positive number that specifies the number of times to repeat text.</font></font></font>
+
*where <math>Text</math> is a text that is to be repeated
 +
*<math>Number-Times</math> is a positive number that specifies how many number of times to repeat the text.
 +
**REPT(), repeats text a given number of times.
  
</div>
+
== Description ==
----
 
<div id="1SpaceContent" class="zcontent" align="left">
 
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">It repeats text a given number of times.</font></font></font>
+
REPT (Text,Number_Times)
  
</div>
+
For Example,
----
 
<div id="12SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="left">
 
  
REPT
+
REPT("*",5) returns ''*****''
  
</div></div>
+
*<math>Text</math> should be enclosed in quotes.
----
+
*<math>Number-Times</math> should be a positive number, else Calci ignores it and returns an empty text ("").
<div id="8SpaceContent" class="zcontent" align="left"> 
+
*If <math>Number-Times</math> is equal to zero, Calci returns an empty text ("").
 +
*If <math>Number-Times</math> is a non-integer, Calci rounds it and displays the output.
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">Let’s see an example in (Column1 Row 1)</font></font></font>
+
== Example ==
 
+
<div id="6SpaceContent" class="zcontent" align="left">
<font color="#484848"><font face="Arial, sans-serif"><font size="2">I.e=REPT(“*”,5) is *****</font></font></font>
 
 
 
<font color="#484848"><font face="Arial, sans-serif"><font size="2">///rly=REPT(“$”,3) is $$$</font></font></font>
 
 
 
</div>
 
----
 
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Syntax </div><div class="ZEditBox"><center></center></div></div>
 
----
 
<div id="3SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Examples </div></div>
 
----
 
<div id="11SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Description </div></div>
 
----
 
<div id="2SpaceContent" class="zcontent" align="left">
 
  
 
{| id="TABLE3" class="SpreadSheet blue"
 
{| id="TABLE3" class="SpreadSheet blue"
 
|- class="even"
 
|- class="even"
| class=" " |
+
| class=" " | '''Function'''
| Column1
+
| class="  " | '''Output'''
| class="  " | Column2
+
 
| Column3
 
| Column4
 
 
|- class="odd"
 
|- class="odd"
| class=" " | Row1
+
| class="sshl_f" |REPT("ABCD*",4)
| class="sshl_f" | *
+
| class="sshl_f" |ABCD*ABCD*ABCD*ABCD*
| class="sshl_f" | *****
+
 
|
 
| class="                                                            sshl_f  " |
 
 
|- class="even"
 
|- class="even"
| class=" " | Row2
+
| class="sshl_f" |REPT("<>",3)
| class="sshl_f" | $
+
| class="sshl_f" |<><><>
| class="sshl_f" | $$$
+
 
|
 
|
 
 
|- class="odd"
 
|- class="odd"
| Row3
+
| class="sshl_f" |REPT("JOHN",0.2)
| class="                                       sshl_f         " |
+
| class="sshl_f" |JOHN
| class=" SelectTD SelectTD" |
+
 
<div id="2Space_Handle" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="2Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
 
|
 
|
 
|- class="even"
 
| Row4
 
|
 
|
 
|
 
| class="  " |
 
|- class="odd"
 
| class=" " | Row5
 
|
 
|
 
|
 
|
 
 
|- class="even"
 
|- class="even"
| Row6
+
| class="sshl_f" |REPT("+",3.6)
|
+
| class="sshl_f" |++++
|
 
|
 
|
 
 
|}
 
|}
  
<div align="left">[[Image:calci1.gif]]</div></div>
+
==Related Videos==
----
+
 
 +
{{#ev:youtube|FdU_UTBUMfc|280|center|REPT}}
 +
 
 +
== See Also ==
 +
 
 +
*[[Manuals/calci/REPLACE |REPLACE ]]
 +
*[[Manuals/calci/SUBSTITUTE |SUBSTITUTE ]]
 +
 
 +
==References==
 +
*[http://en.wikipedia.org/wiki/Repetition_(rhetorical_device) REPETITION]
 +
 
 +
 
 +
 
 +
*[[Z_API_Functions | List of Main Z Functions]]
 +
 
 +
*[[ Z3 |  Z3 home ]]

Latest revision as of 16:26, 13 August 2018

REPT (Text,Number_Times)


  • 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 text a given number of times.

Description

REPT (Text,Number_Times)

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) ++++

Related Videos

REPT

See Also

References