converter for input numeric