|
|
@ -2,6 +2,13 @@ |
|
|
|
#ifndef THEADMIRALS_CONVERT_M_TO_FT_H |
|
|
|
#define THEADMIRALS_CONVERT_M_TO_FT_H |
|
|
|
|
|
|
|
// Convert length from one unit to another |
|
|
|
// Parameters: |
|
|
|
// value: the value to be converted |
|
|
|
// from_unit: the unit to convert from ('m' for meters, 'c' for centimeters, 'i' for inches) |
|
|
|
// to_unit: the unit to convert to ('m' for meters, 'c' for centimeters, 'i' for inches) |
|
|
|
// Returns: |
|
|
|
// The converted length value |
|
|
|
|
|
|
|
float convert_length(float value, char from_unit, char to_unit); |
|
|
|
|
|
|
|