Changeset 6537 in ntrip for trunk/BNC/src/bncutils.cpp


Ignore:
Timestamp:
Jan 2, 2015, 3:40:09 PM (9 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncutils.cpp

    r6168 r6537  
    589589////////////////////////////////////////////////////////////////////////////
    590590QString fortranFormat(double value, int width, int prec) {
    591   int    expo = value == 0.0 ? 0 : log10(fabs(value));
     591  int    expo = value == 0.0 ? 0 : int(log10(fabs(value)));
    592592  double mant = value == 0.0 ? 0 : value / pow(10, expo);
    593593  if (fabs(mant) >= 1.0) {
Note: See TracChangeset for help on using the changeset viewer.