using number converter

fixes problems with <input type='number'>  returning a string