}
assert(prefix >= 0);
- assert(prefix < countof(SIPrefixes));
+ assert(prefix < (int)countof(SIPrefixes));
const double multiplier = pow(10.0,
(int)- prefix * 3 - FirstSIPrefixPower);
QTextStream ts(&s);
if (sign)
ts << forcesign;
- ts << fixed << qSetRealNumberPrecision(precision)
- << (v * multiplier) << SIPrefixes[prefix] << unit;
+ ts << fixed << qSetRealNumberPrecision(precision) <<
+ (v * multiplier) << " " << SIPrefixes[prefix] << unit;
return s;
}