Microsoft SDK for Java

toDouble

This method of the Variant Class coerces the Variant object to a VT_R8 and returns the coerced result. The results of the coercion are not stored in the Variant.

Syntax

public native double toDouble() throws ClassCastException;

Return Value

Returns the coerced value converted to a Java double.

Exceptions

ClassCastException if the Variant object's type cannot be coerced.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.