Skip to content

f64::from(bool) and f32::from(bool) #74015

Description

@leonardo-m

I think f64::from(bool) and f32::from(bool) could be added. Currently I perform that in two steps:

f64::from(u32::from(bool))
f32::from(u16::from(bool))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-floating-pointArea: Floating point numbers and arithmeticC-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-langRelevant to the language team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions