Skip to content

math::softfloat::float64_t( <float_value> ) or math::softfloat::float64_t(<double_value>) possible? #110

@RobertMassart

Description

@RobertMassart

In a cpp header I want to have the following work:

inline constexpr auto gravitational_constant = math::softfloat::float64_t(6.674e-11);

// This will work when it's an integer value
inline constexpr auto gravitational_constant = math::softfloat::float64_t(6);

Just can't use constexpr when it's a double or float.

Is it possible to make this work as an constexpr?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions