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
See also: Types of Data - Floats

Additional language notes

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

Ported from nushell/nushell.github.io. Copyright (c) 2021 Nushell Project. MIT License.