getconf : added a getfloat method

Could be easier to handle as 3 copy-pasted blocks.

DRY is not always the best solution.