You should be able to use parseFloat
directly, skipping toString
conversion:
const d = parseFloat(row.f0_);
Also, if you find f0_
ugly, you can rename it using AS
SELECT AVG(vs) AS 'vs'
Then this would become
const d = parseFloat(row.vs);