Changeset 6537 in ntrip for trunk/BNC/src/bncutils.cpp
- Timestamp:
- Jan 2, 2015, 3:40:09 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncutils.cpp
r6168 r6537 589 589 //////////////////////////////////////////////////////////////////////////// 590 590 QString 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))); 592 592 double mant = value == 0.0 ? 0 : value / pow(10, expo); 593 593 if (fabs(mant) >= 1.0) {
Note:
See TracChangeset
for help on using the changeset viewer.