fmt for conversions

Format a number.

WARNING

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

Signature

> fmt {flags}

Input/output types:

inputoutput
numberrecord

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     
╰──────────┴──────────╯