|
|
| 89 |
std::size_t places = 0; // Number of decimal places printed so far |
89 |
std::size_t places = 0; // Number of decimal places printed so far |
| 90 |
bool more = true; // Should we print more digits? |
90 |
bool more = true; // Should we print more digits? |
| 91 |
|
91 |
|
| 92 |
NS_LOG_LOGIC (std::endl |
|
|
| 93 |
<< (floatfield ? " f" : " ") |
| 94 |
<< "[" << precision << "] " << hi << ". " |
| 95 |
<< HEXHILOW (hi, low.GetLow ()) |
| 96 |
); |
| 97 |
|
| 98 |
int64_t digit; |
92 |
int64_t digit; |
| 99 |
do |
93 |
do |
| 100 |
{ |
94 |
{ |
|
|
| 118 |
// Full resolution is 20 decimal digits |
112 |
// Full resolution is 20 decimal digits |
| 119 |
more = low.GetLow () && (places < 20); |
113 |
more = low.GetLow () && (places < 20); |
| 120 |
} |
114 |
} |
| 121 |
|
|
|
| 122 |
NS_LOG_LOGIC ((more ? "+" : " ") |
| 123 |
<< (floatfield ? "f" : " ") |
| 124 |
<< "[" << places << "] " << digit |
| 125 |
<< HEXHILOW (low.GetHigh (), low.GetLow ()) |
| 126 |
<< std::dec << std::setfill (' ' ) << std::left); |
| 127 |
|
| 128 |
} while (more); |
115 |
} while (more); |
| 129 |
|
116 |
|
| 130 |
// Check if we need to round the last printed digit, |
117 |
// Check if we need to round the last printed digit, |