Read int/float and create function.