1
0
mirror of https://github.com/psychopy/psychojs.git synced 2025-05-12 16:48:10 +00:00

util/Util: roll back to parseFloat when converting to number

This commit is contained in:
Sotiri Bakagiannis 2021-02-15 23:43:17 +00:00
parent 9b5938098f
commit 50547455bf

View File

@ -261,7 +261,7 @@ export function toNumerical(obj)
const convertToNumber = (input) => const convertToNumber = (input) =>
{ {
const n = Number(input); const n = Number.parseFloat(input);
if (Number.isNaN(n)) if (Number.isNaN(n))
{ {