Skip to content

Library to handle physical values, dimensions and units.

License

Notifications You must be signed in to change notification settings

100prznt/Rca.Physical

Repository files navigation

Bulid Current version Code size NuGet

Rca.Physical

Library to handle physical values, dimensions and units.

Core Features

  • Basic calculation with physical values

Usage

//Use the helper classes, are provided for each physical dimension.
PhysicalValue myVoltageValue = Voltage.FromMillivolt(7410);

//Use the PhysicalValue constructor and select the unit from the common Units-Enum
PhysicalValue myCurrentValue = new(0.147, PhysicalUnits.Ampere);


//Use the overloaded ToString() method, to print out the value
Console.WriteLine(myVoltageValue);

//Fit the value to the best unit, and print in out with ToString(), also
Console.WriteLine(myCurrentValue.GetFittedPhysicalValue());


// The example displays the following output to the console:
//  7410 mV
//  147 mA

Credits

This library is made possible by contributions from:

License

Rca.Physical is licensed under MIT. Refer to LICENSE for more information.

Contributions

Contributions are welcome. Fork this repository and send a pull request if you have something useful to add.

Related Projects

  • Rca.Physical.If97 - Property library for water and steam according to the industrial formulation IAPWS-IF97.

About

Library to handle physical values, dimensions and units.

Topics

Resources

License

Stars

Watchers

Forks

Languages