Home Explore Blog CI



nushell

lang-guide/chapters/types/basic_types/float.md
7f599e811fb12880f32fda2083c55a5c41d47dc416982fae00000003000003b3
# Float

|                       |                                                                                  |
| --------------------- | -------------------------------------------------------------------------------- |
| **_Description:_**    | Numbers with some fractional component                                           |
| **_Annotation:_**     | `float`                                                                          |
| **_Literal syntax:_** | A decimal numeric value including a decimal place. E.g., `1.5`, `2.0`, `-15.333` |
| **_Casts:_**          | [`into float`](/commands/docs/into_float.md)                                     |
| **_See also:_**       | [Types of Data - Floats](/book/types_of_data.md#floatsdecimals)                  |

## Additional language notes

- Floats are internally represented as IEEE-754 floats with 64 bit precision.

<!-- TBD: semantics for comparison, NaN/InF. Future hashing. -->

Chunks
1cdd3f17 (1st chunk of `lang-guide/chapters/types/basic_types/float.md`)
Title: Float Data Type in Nushell
Summary
This section describes the 'float' data type in Nushell, which represents numbers with a fractional component. It details the annotation, literal syntax, and casting methods associated with floats. It also mentions the internal representation of floats as IEEE-754 floats with 64-bit precision.