alcoholConcentration 1.0.0
dotnet add package alcoholConcentration --version 1.0.0
NuGet\Install-Package alcoholConcentration -Version 1.0.0
<PackageReference Include="alcoholConcentration" Version="1.0.0" />
paket add alcoholConcentration --version 1.0.0
#r "nuget: alcoholConcentration, 1.0.0"
// Install alcoholConcentration as a Cake Addin
#addin nuget:?package=alcoholConcentration&version=1.0.0
// Install alcoholConcentration as a Cake Tool
#tool nuget:?package=alcoholConcentration&version=1.0.0
Functions
Blood Alcohol Concentration (BAC) Calculator Blood alcohol concentration (BAC) is a commonly used measure of alcohol intoxication, also known as drunkenness. It is typically expressed as a percentage of alcohol per volume of blood
Usage
Code examples of how a component can be used.
Parameters for function AlcoholConcentration
(class AlcoholConsumed
)
gender
- ("men"/"women")
bodyWeightKg
- body weight (kilograms)
volumeMl
- volume of drink taken (millilitres)
alcoholPercentage
- strength of drink
var calc = new alcoholConcentration.PromilesCalculations();
var consumed = new alcoholConcentration.AlcoholConsumed("men", 68.18, 1000, 5);
var promiles = calc.AlcoholConcentration(consumed);
console.Writeline(promiles);
Parameters for function TimeToReachSoberize
class AlcoholConsumed
(see above)
string T
- period after consumption
var calc = new alcoholConcentration.PromilesCalculations();
var consumed = new alcoholConcentration.AlcoholConsumed("men", 68.18, 1000, 5);
var promiles = calc.TimeToReachSoberize(consumed);
console.Writeline(promiles);
`
Built With
Author
Julius
License
Distributed under the MIT License. See MIT license
under About
menu for more information.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 430 | 6/6/2022 |
First release