Avoid bad integer conversion - Bug fix for #2983
Avoid bad integer conversion - Bug fix for #2983

If string has decimal point, the atoi will fail.

AmeBel/opencog,AmeBel/opencog,AmeBel/opencog,AmeBel/opencog,andre-senna/opencog,andre-senna/opencog,andre-senna/opencog,AmeBel/opencog,andre-senna/opencog,andre-senna/opencog,AmeBel/opencog,andre-senna/opencog,andre-senna/opencog,AmeBel/opencog