PrintSettings.getDoubleWithDefault

double getDoubleWithDefault(string key, double def)

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.global.asciiStrtod].

Parameters

keya key
defthe default value

Returns

the floating point number associated with key