String o = Double.toString(mantissa);
if(o.indexOf('.') == 3)
o = o.substring(0, 3);
else if((o.indexOf('.') > -1) && (o.indexOf('E') == -1) && (o.length() > 4))
o = o.substring(0, 4);
<BUG>if(i < SizeUtil.suffixes.length) // handle the case where the mantissa is Infinity
o += ' ' + SizeUtil.suffixes[i];
return o;</BUG>
}
}

String o = Double.toString(mantissa);
if(o.indexOf('.') == 3)
o = o.substring(0, 3);
else if((o.indexOf('.') > -1) && (o.indexOf('E') == -1) && (o.length() > 4))
o = o.substring(0, 4);
if(i < SizeUtil.suffixes.length) // handle the case where the mantissa is Infinity
if(useNonBreakingSpace) {
o += '\u00a0' + SizeUtil.suffixes[i];
} else {
o += ' ' + SizeUtil.suffixes[i];
