/** * Writes a real number to the content stream. * @param real * @throws java.io.IOException */ protected void writeOperand(float real) throws IOException { int byteCount = NumberFormatUtil.formatFloatFast(real, formatDecimal.getMaximumFractionDigits(), formatBuffer); if (byteCount == -1) { //Fast formatting failed write(formatDecimal.format(real)); } else { outputStream.write(formatBuffer, 0, byteCount); } outputStream.write(' '); }
offset = formatPositiveNumber(integerPart, getExponent(integerPart), false, asciiBuffer, offset); offset = formatPositiveNumber(fractionPart, maxFractionDigits - 1, true, asciiBuffer, offset);
offset = formatPositiveNumber(integerPart, getExponent(integerPart), false, asciiBuffer, offset); offset = formatPositiveNumber(fractionPart, maxFractionDigits - 1, true, asciiBuffer, offset);
/** * Writes a real number to the content stream. * @param real * @throws java.io.IOException */ protected void writeOperand(float real) throws IOException { int byteCount = NumberFormatUtil.formatFloatFast(real, formatDecimal.getMaximumFractionDigits(), formatBuffer); if (byteCount == -1) { //Fast formatting failed write(formatDecimal.format(real)); } else { output.write(formatBuffer, 0, byteCount); } output.write(' '); }
offset = formatPositiveNumber(integerPart, getExponent(integerPart), false, asciiBuffer, offset); offset = formatPositiveNumber(fractionPart, maxFractionDigits - 1, true, asciiBuffer, offset);
/** * Writes a real number to the content stream. * * @param real the float value to be added to the content stream. * * @throws IOException if something went wrong */ protected void writeOperand(float real) throws IOException { int byteCount = NumberFormatUtil.formatFloatFast(real, formatDecimal.getMaximumFractionDigits(), formatBuffer); if (byteCount == -1) { //Fast formatting failed write(formatDecimal.format(real)); } else { output.write(formatBuffer, 0, byteCount); } output.write(' '); }