Outputs
- Result — the string form of the input.
- Uppercase — same string, uppercased.
- Lowercase — same string, lowercased.
44.0 becomes "44"); other
floats render with the shortest form that round-trips to the same value
(44.1 becomes "44.1", not "44.1000000000000014").
Truncation
Set Truncate width to a positive integer to cut the result down to a fixed grapheme length. Truncate side picks:right (default —
keep the prefix, drop the tail) or :left (keep the suffix, drop the
head). Values already at or below the width pass through unchanged.
Padding
Set Pad width to a positive integer to pad the result to a fixed length. Pad char is the fill (default0); pass multiple characters
to cycle them as graphemes, like String.pad_leading/3. Pad side
picks left (default) or right. Values already at or above the width
pass through unchanged.
Truncation runs before padding, so setting both to the same width
produces an exact-length field. Both apply to all three output ports.