Change return value type from float on double