Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
Functions
uni20::display::format Namespace Reference

Functions

column_format fixed (int precision, terminal::TerminalStyle style={})
 Format numeric values with fixed-point notation and the requested precision.
 
column_format general (int precision, terminal::TerminalStyle style={})
 Format numeric values with general notation and the requested precision.
 
column_format number (std::string pattern="{}", terminal::TerminalStyle style={})
 Treat column values as numeric and format them with a runtime fmt pattern.
 
column_format scientific (int precision, terminal::TerminalStyle style={})
 Format numeric values with scientific notation and the requested precision.
 
column_format text (terminal::TerminalStyle style={})
 Treat column values as text, optionally applying a style.
 

Function Documentation

◆ fixed()

column_format uni20::display::format::fixed ( int  precision,
terminal::TerminalStyle  style 
)

Format numeric values with fixed-point notation and the requested precision.

◆ general()

column_format uni20::display::format::general ( int  precision,
terminal::TerminalStyle  style 
)

Format numeric values with general notation and the requested precision.

◆ number()

column_format uni20::display::format::number ( std::string  pattern,
terminal::TerminalStyle  style 
)

Treat column values as numeric and format them with a runtime fmt pattern.

◆ scientific()

column_format uni20::display::format::scientific ( int  precision,
terminal::TerminalStyle  style 
)

Format numeric values with scientific notation and the requested precision.

◆ text()

column_format uni20::display::format::text ( terminal::TerminalStyle  style)

Treat column values as text, optionally applying a style.