Previous topic

getboolean

Next topic

getint

This Page

getfloat

NepidemiXConfigParser.getfloat(section, option, default=None, add_if_not_existing=True)

Get a float value.

Parameters :

section :str :

The config section.

option : str

The config option.

default : special, optional

If None an exception will be raised if option does not exist. If not None, the value of default will be returned and no exception raised. Default - None.

add_if_not_existing : bool, optional

If this is True, the option does not exist and` default` != None, the option will be created and set to the value of default.

Returns :

val : float

The value of option casted to float.