asv_get_double


Description:


[ Version ( since = "0.7.9" ) ]
public double asv_get_double (HashTable<string,Value?> asv, string key, out bool valid)

If a value for key in asv is present and has any numeric type used by dbus-glib (guchar, gint, guint, gint64, guint64 or gdouble), return it as a double, and if valid is not null, set *valid to true .

Otherwise, return 0.0, and if valid is not null, set *valid to false.

Parameters:

asv

A GHashTable where the keys are strings and the values are GValues

key

The key to look up

valid

Either null, or a location in which to store true on success or false on failure

Returns:

the double precision floating-point value of key, or 0.0


Namespace: TelepathyGLib
Package: telepathy-glib



2022 vala-language.org