IDataInput.ReadDouble Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Reads eight input bytes and returns
a double
value.
[Android.Runtime.Register("readDouble", "()D", "GetReadDoubleHandler:Java.IO.IDataInputInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public double ReadDouble ();
[<Android.Runtime.Register("readDouble", "()D", "GetReadDoubleHandler:Java.IO.IDataInputInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member ReadDouble : unit -> double
Returns
the double
value read.
- Attributes
Exceptions
if the end of the input is reached before the read request can be satisfied.
if an I/O error occurs while reading.
Remarks
Reads eight input bytes and returns a double
value. It does this by first constructing a long
value in exactly the manner of the readLong
method, then converting this long
value to a double
in exactly the manner of the method Double.longBitsToDouble
. This method is suitable for reading bytes written by the writeDouble
method of interface DataOutput
.
Java documentation for java.io.DataInput.readDouble()
.
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.