mirror of
https://github.com/nasa/trick.git
synced 2025-01-07 05:38:46 +00:00
552f73d3a5
For addition and subtraction, we created a new routine that only scales second units to the first. We apply it to all conversions when adding and subtracting, but it only changes the temperature results, because that is the only units that has a bias factor. The comparision conversion routines were not changed. refs #202
12 lines
468 B
C++
12 lines
468 B
C++
|
|
#ifndef SWIG_CONERT_UNITS_HH
|
|
#define SWIG_CONERT_UNITS_HH
|
|
#include <string>
|
|
|
|
int convert_united_value( std::string & to_units , std::string & from_units , long long * val ) ;
|
|
int convert_united_value( std::string & to_units , std::string & from_units , double * val ) ;
|
|
|
|
int scale_united_value( std::string & to_units , std::string & from_units , long long * val ) ;
|
|
int scale_united_value( std::string & to_units , std::string & from_units , double * val ) ;
|
|
#endif
|