Skip to content

Float::exp2() is calling exp() #22080

Closed
@mdinger

Description

@mdinger

This succeeds and shouldn't.

let f = 2.0f32;

assert_eq!(f.exp2(), f.exp());

In f64, f64 is calling exp. In f32, f32 is also calling exp. Might just have to add a 2...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions