mirror of
https://github.com/psychopy/psychojs.git
synced 2025-05-12 08:38:10 +00:00
util/Util: roll back to parseFloat when converting to number
This commit is contained in:
parent
9b5938098f
commit
50547455bf
@ -261,7 +261,7 @@ export function toNumerical(obj)
|
||||
|
||||
const convertToNumber = (input) =>
|
||||
{
|
||||
const n = Number(input);
|
||||
const n = Number.parseFloat(input);
|
||||
|
||||
if (Number.isNaN(n))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user