Skip to content

beginner question - how to multiply by a unitless quantity #130

@RallyTronics

Description

@RallyTronics

How do I multiply an SI unit by a unitless quantity i.e

struct sphere_t
{
    SI::metre_t<double> r;

    SI::square_metre_t<double> surface_area(void) const
    {
        return 4.0 * PI * r * r;
    }
};

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