Skip to content

<cmath>: pow(float, int) doesn't return double #890

Description

@Amaroker

This bug was reported a long time ago at Developer Community, but I couldn't find an open issue here. Has it been forgotten?

#include <cmath>
#include <iomanip>

int main()
{
    // This should be OK since C++11
    static_assert( std::is_same<decltype(std::pow(10.f, 2)), double>::value );
}

See also DevCom-183102 and Microsoft-internal VSO-553723.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfixedSomething works now, yay!

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions