get_double


Description:

public double get_double ()

Returns the double precision floating point value of this.

It is an error to call this function with a this of any type other than g_variant_type_double.

Example: Get a double:

public static int main () {
Variant var1 = new Variant.double (10.9);
// Output: ``10.900000``
print ("%f\n", var1.get_double ());
// Output: ``10.900000``
print ("%f\n", (double) var1);
return 0;
}

valac --pkg glib-2.0 GLib.Variant.get_double.vala

Parameters:

this

a double Variant instance

Returns:

a double