public JBBPTextWriter Double ( final double value ) throws IOException { ensureValueMode ( ) ; String convertedByExtras = null ; for ( final Extra e : this . extras ) { convertedByExtras = e . doConvertDoubleToStr ( this , value ) ; if ( convertedByExtras != null ) { break ; } } if ( convertedByExtras == null ) { final double valueToWrite ; if ( this . byteOrder == JBBPByteOrder . LITTLE_ENDIAN ) { valueToWrite = Double . longBitsToDouble ( JBBPFieldLong . reverseBits ( Double . doubleToLongBits ( value ) ) ) ; } else { valueToWrite = value ; } printValueString ( JBBPUtils . ensureMinTextLength ( JBBPUtils . double2str ( valueToWrite , this . radix ) , this . maxCharsRadixForShort , ' ' , 0 ) ) ; } else { printValueString ( convertedByExtras ) ; } return this ; }
Print double value .