strRSet

Right-aligns a string within a fixed width, padding with spaces. Takes str (string to align), width (total width in characters). Returns a string of exactly width characters, with str right-aligned and padded with spaces on the left.

String

Parameters & Returns

Parameters

str String
width Int

Returns

String

Quick Summary

Right-aligns a string within a fixed width, padding with spaces. Takes str (string to align), width (total width in characters). Returns a string of exactly width characters, with str right-aligned and padded with spaces on the left.

Technical Exegesis...

Returns a string of exactly width characters, with str right-aligned and padded with spaces on the left. If str is longer than width, it is truncated from the left to width characters.

Returns an empty string if width is 0 or negative. Useful for creating fixed-width columns in text output, aligning numbers, or formatting tabular data.

Example

Example.bam
; No example implemented yet