Allow floating point numbers in weight input