REPT(txt, numt)
- where Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle txt} is a text that is to be repeated
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle numt} 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 *****
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle txt} should be enclosed in quotes.
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle numt} should be a positive number, else Calci ignores it and returns an empty text ("").
- If Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle numt} is equal to zero, Calci returns an empty text ("").
- If Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle numt} 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) | $$$$ |