private static void writeBigDecimal(BigDecimal o, DataOutput out) throws IOException {
    InternalDataSerializer.checkOut(out);

    if (logger.isTraceEnabled(LogMarker.SERIALIZER_VERBOSE)) {
      logger.trace(LogMarker.SERIALIZER_VERBOSE, "Writing BigDecimal: {}", o);
    }
    DataSerializer.writeString(o.toString(), out);
  }
Reads a {@code TimeUnit} from a {@code DataInput}.

@throws IOException A problem occurs while writing to {@code out}
geode-core/src/main/java/org/apache/geode/internal/InternalDataSerializer.java