---
title: format number
categories: |
conversions
version: 0.104.0
conversions: |
Format a number.
usage: |
Format a number.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->
# `format number` for [conversions](/commands/categories/conversions.md)
<div class='command-title'>Format a number.</div>
## Signature
```> format number {flags} ```
## Input/output types:
| input | output |
| ------ | ------ |
| number | record |
## Examples
Get a record containing multiple formats for the number 42
```nu
> 42 | format number
╭──────────┬──────────╮
│ binary │ 0b101010 │
│ debug │ 42 │
│ display │ 42 │
│ lowerexp │ 4.2e1 │
│ lowerhex │ 0x2a │
│ octal │ 0o52 │
│ upperexp │ 4.2E1 │
│ upperhex │ 0x2A │
╰──────────┴──────────╯
```