Manuals/calci/REPEATCHAR

Revision as of 03:51, 26 April 2017 by Swapna (talk | contribs) (Created page with "<div style="font-size:30px">'''REPEATCHAR(Char,NumberOfTimes)'''</div><br/> *where <math>Char</math> is the input character or a string, *<math>NumberOfTimes</math> is the tot...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
REPEATCHAR(Char,NumberOfTimes)


  • 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 Char} is the input character or a string,
  • 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 NumberOfTimes} is the total number of times the given character is to be repeated.

Description

  • This function repeats the given character for number of times mentioned.
  • Argument 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 Char} can be a character, string or a number.
  • Argument 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 NumberOfTimes} should be a positive value greater than '0'.
  • For the fractional value of 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 NumberOfTimes} , it is rounded off to the nearest integer.

Examples

  1. =REPEATCHAR(4,6) = 444444
  2. =REPEATCHAR(678,3) = 678678678
  3. =REPEATCHAR("Hello",3.6) = HelloHelloHelloHello
  4. =REPEATCHAR(-45.5,5) = -45.5-45.5-45.5-45.5-45.5
  5. =REPEATCHAR(59,-3) = Error


Related Video

How to repeat a character


See Also


References