Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Type Function

Number

Public Type Function
std.fmt.parse_float.common.Number
pub fn Number(comptime T: type) type

Represents a parsed floating point value as its components.

Fields

exponent: i64
mantissa: mantissaType(T)
negative: bool
many_digits: bool

More than max_mantissa digits were found during parse

hex: bool

The number was a hex-float (e.g. 0x1.234p567)

File

fmt/parse_float/common.zig:59
59
60
61
62
63
64
65
66
67
68
69
pub fn Number(comptime T: type) type {
    return struct {
        exponent: i64,
        mantissa: mantissaType(T),
        negative: bool,
        /// More than max_mantissa digits were found during parse
        many_digits: bool,
        /// The number was a hex-float (e.g. 0x1.234p567)
        hex: bool,
    };
}