Compartilhar via


DataOutputStream.WriteDouble(Double) Method

Definition

Converts the double argument to a long using the doubleToLongBits method in class Double, and then writes that long value to the underlying output stream as an 8-byte quantity, high byte first.

[Android.Runtime.Register("writeDouble", "(D)V", "")]
public void WriteDouble (double v);
[<Android.Runtime.Register("writeDouble", "(D)V", "")>]
abstract member WriteDouble : double -> unit
override this.WriteDouble : double -> unit

Parameters

v
Double

a double value to be written.

Implements

Attributes

Exceptions

Remarks

Converts the double argument to a long using the doubleToLongBits method in class Double, and then writes that long value to the underlying output stream as an 8-byte quantity, high byte first. If no exception is thrown, the counter written is incremented by 8.

Java documentation for java.io.DataOutputStream.writeDouble(double).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to