psychrometrics/psychrolib

calc error with javascript

birdol opened this issue · 3 comments

Download form github latest version

var psychrolibSI = require('../../utils/psychrolib.js')
psychrolibSI.SetUnitSystem(psychrolibSI.SI)
var result= psychrolibSI.CalcPsychrometricsFromTWetBulb(20, 15, 101325);
console.log(result)
0:1e-7
1: -87.10730529927714
2: Infinity
3: 0.016291630885105456
4: 20120.25382
5: 57.43149724107621
6: 1

anything wrong with my code?

dmey commented

Looks OK but just tried locally on Node.js v10.16.3 and could not reproduce the issue -- what version of Node.js and sys are you using?

image

ok i got that error。i use var db = 20,ide make number to string,then... error happen

dmey commented

Good. Will close this now.