Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    \$\begingroup\$ Hello, and welcome to PPCG! This is a great answer! \$\endgroup\$ Commented Aug 17, 2016 at 15:06
  • \$\begingroup\$ @NoOneIsHere Thanks! Originally I was thinking of Clip, which has pretty much the same syntax as OP's Clamp, but then I saw that StringRepeat has the optional third argument for truncation. \$\endgroup\$ Commented Aug 18, 2016 at 6:47
  • 3
    \$\begingroup\$ There are Unicode characters for the left and right ceiling bracket which together make up only 6 bytes instead of the 9 you need for Ceiling[]. \$\endgroup\$ Commented Aug 18, 2016 at 7:31