Dela via


RandomAccessFile.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 file as an eight-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

if an I/O error occurs while writing to this file.

Remarks

Converts the double argument to a long using the doubleToLongBits method in class Double, and then writes that long value to the file as an eight-byte quantity, high byte first. The write starts at the current position of the file pointer.

Java documentation for java.io.RandomAccessFile.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

See also