EDCS Reference Manual
Functions
EDCS ConvertQuantityLongFloatValue
extern EDCS_Status_Code
EDCS_ConvertQuantityLongFloatValue
(
const EDCS_Long_Float_Value  *from_value_in_ptr,1
EDCS_Long_Float_Value  *to_value_in_out_ptr2
);

Definition

Given a physical quantity with a given unit and scale specified in the from_value_in_ptr structure, convert that quantity to the unit and scale specified within the to_value_in_out_ptr structure.


Returns

EDCS_SC_SUCCESS and *to_value_in_out_ptr is set to the result of the specified conversion, if valid parameters were passed in.
EDCS_SC_NULL_REQUIRED_PARAMETER and *to_value_in_out_ptr is left unchanged, if either from_value_in_ptr or to_value_in_out_ptr were NULL.
EDCS_SC_INVALID_INPUT_UNIT and *to_value_in_out_ptr is left unchanged, if the unit specified in the from_value_in_ptr structure is not a valid EU code.
EDCS_SC_INVALID_OUTPUT_UNIT and *to_value_in_out_ptr is left unchanged, if the unit specified in the to_value_in_out_ptr structure is not a valid EU code.
EDCS_SC_INVALID_INPUT_UNIT_SCALE and *to_value_in_out_ptr is left unchanged, if the scale specified in the from_value_in_ptr structure is not a valid ES code.
EDCS_SC_INVALID_OUTPUT_UNIT_SCALE and *to_value_in_out_ptr is left unchanged, if the scale specified in the to_value_in_out_ptr structure is not a valid ES code.
EDCS_SC_INVALID_OUTPUT_UNIT_SCALE and *to_value_in_out_ptr is left unchanged, if the scale specified in the to_value_in_out_ptr structure is not a valid ES code.
EDCS_SC_UNITS_NOT_EQUIVALENT and *to_value_in_out_ptr is left unchanged, if the units specified in the from_value_in_ptr and to_value_in_out_ptr structures do not belong to the same EQ class.

Parameters Notes

1 the from value

2 the to value


Prev: EDCS_CompareStrings. Next: EDCS_ConvertQuantityValue. Up:Index.