Gtk.PrintSettings.prototype.get_double_with_default

function get_double_with_default(key:String, def:Number):Number {
    // Gjs wrapper for gtk_print_settings_get_double_with_default()
}

Returns the floating point number represented by the value that is associated with key, or @default_val if the value does not represent a floating point number.

Floating point numbers are parsed with GLib.ascii_strtod.

Since 2.10

key

a key

def

the default value

Returns

the floating point number associated with key