static char *gcvt(double number, size_t ndigit, char *buf)
{
- sprintf(buf, "%f", number);
- return buf;
+ sprintf(buf, "%f", number);
+ return buf;
}
#endif
namespace JSBSim {
-/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-COMMENTS, REFERENCES, and NOTES [use "class documentation" below for API docs]
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
-
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CLASS DOCUMENTATION
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
void disableHighLighting(void);
static short debug_lvl;
+ double KelvinToFahrenheit (double kelvin) {
+ return 1.8*kelvin - 459.4;
+ }
+
+ double RankineToCelsius (double rankine) {
+ return (rankine - 491.67)/1.8;
+ }
protected:
static Message localMsg;
static const double ktstofps;
static const double inchtoft;
static const double in3tom3;
- static const double Reng; // Specific Gas Constant,ft^2/(sec^2*R)
+ static double Reng; // Specific Gas Constant,ft^2/(sec^2*R)
static const double SHRatio;
static const string needed_cfg_version;
static const string JSBSim_version;