Changed parseInt to parseFloat

This commit is contained in:
J Guthrie
2018-08-03 01:33:29 +01:00
parent 8df5d489e1
commit c1bdcf24aa
+1 -1
View File
@@ -92,7 +92,7 @@ export function uiFieldText(field, context) {
// parse as a number
function parsed(val) {
return parseInt(val || 0, 10) || 0;
return parseFloat(val || 0, 10) || 0;
}
// clamp number to min/max