Variant.double
Description:
Creates a new double Variant instance.
Example: Create a new double Variant:
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.Variant.double.vala
Parameters:
value |
a double floating point value |
Returns:
a floating reference to a new double Variant instance |