mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-12-25 22:03:49 +01:00
Convert strings that represent numeric values to an apropriate type.
This commit is contained in:
parent
86163a9f56
commit
bbc15f3351
@ -95,9 +95,9 @@ class data {
|
|||||||
}
|
}
|
||||||
function readrow(line){
|
function readrow(line){
|
||||||
var vals=line.split(/\s+/);
|
var vals=line.split(/\s+/);
|
||||||
var start=new state(vals[0],vals[1],vals[2]);
|
var start=new state(parseInt(vals[0],10),parseInt(vals[1],10),vals[2]);
|
||||||
var end=new state(vals[3],vals[4],vals[5]);
|
var end=new state(parseInt(vals[3],10),vals[4],vals[5]);
|
||||||
var ex=new excitation(start,end,vals[6]);
|
var ex=new excitation(start,end,parseFloat(vals[6],10));
|
||||||
dat.excitations.push(ex);
|
dat.excitations.push(ex);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user