fmt for conversions

Format a number.

Signature

> fmt {flags}

Input/output types:

input output
number record

Examples

Get a record containing multiple formats for the number 42

> 42 | fmt
╭──────────┬──────────╮
 binary    0b101010 
 debug     42       
 display   42       
 lowerexp  4.2e1    
 lowerhex  0x2a     
 octal     0o52     
 upperexp  4.2E1    
 upperhex  0x2A     
╰──────────┴──────────╯

Tips: Command fmt was not included in the official binaries by default, you have to build it with --features=extra flag