Skip to content

std.Random doesn't support f16, f80, f128 #23518

@WiserOrb

Description

@WiserOrb

Zig Version

0.15.0-dev.169+fa86e09fb

Steps to Reproduce and Observed Behavior

Methods like std.Random.(float | floatNorm | floatExp ) should support the creation of random floating point for all supported floating point formats by zig.

Currently these methods switch to @compileError("unknown floating point type").

Expected Behavior

Support every floating point

Metadata

Metadata

Assignees

No one assigned

    Labels

    contributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.enhancementSolving this issue will likely involve adding new logic or components to the codebase.standard libraryThis issue involves writing Zig code for the standard library.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions