10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 05:43:46 +01:00

Use the new floatUtils

This commit is contained in:
Mickaël Véril 2020-02-01 17:14:52 +01:00
parent b46acd130b
commit 89007ebdd6
2 changed files with 4 additions and 3 deletions

View File

@ -24,6 +24,7 @@ draft: false
<script src="/js/selectSelectAll.js"></script>
<script src="https://unpkg.com/simple-statistics@7.0.2/dist/simple-statistics.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bowser@2.5.3/es5.min.js"></script>
<script src="/js/floatUtils.js"></script>
<script>
window.onload = async () => {
window.browser=bowser.getParser(window.navigator.userAgent);

View File

@ -279,9 +279,9 @@ class dataFileBase {
type = m[1]
}
}
var val = ((vals.length >= 7 + hasType) ? parseFloat(vals[6 + hasType], 10) : NaN)
var oscilatorForces = ((vals.length >= 8 + hasType) ? parseFloat(vals[7 + hasType], 10) : NaN)
var T1 = ((vals.length >= 9 + hasType) ? parseFloat(vals[8 + hasType], 10) : NaN)
var val = ((vals.length >= 7 + hasType) ? new stringFloat(vals[6 + hasType], 10) : NaN)
var oscilatorForces = ((vals.length >= 8 + hasType) ? new stringFloat(vals[7 + hasType], 10) : NaN)
var T1 = ((vals.length >= 9 + hasType) ? new stringFloat(vals[8 + hasType], 10) : NaN)
var isUnsafe = ((vals.length >= 10 + hasType) ? vals[9 + hasType] === true.toString() : false)
var ex = new excitationValue(start, end, type, val, oscilatorForces, T1, isUnsafe);
if (this.VertExcitationKind) {