format_four_chars: Format number to four characters

View source: R/helper_functions.r

format_four_charsR Documentation

Format number to four characters

Description

This function formats a number to a string of exactly four characters.

Usage

format_four_chars(num)

Arguments

num

The number to be formatted.

Value

A string representation of the number with exactly four characters.

Examples

format_four_chars(123)
format_four_chars(-12.34)

plotcli documentation built on May 29, 2024, 6:22 a.m.