copenhagenatomics / CA_DataUploader

C# software package to upload temperature data from CA temperature hub product
MIT License
4 stars 1 forks source link

IOconfMath - detect overflow #318

Closed LarsWithCA closed 5 months ago

LarsWithCA commented 5 months ago

The following expression causes unexpected behavior due to 298*200*200*200 being evaluated as integer math and overflowing:

Math;ElbowFlow_Lpm;if(ElbowOutside_bar>ElbowInside_bar,0.471*Sqrt(298*200*200*200*(ElbowOutside_bar-ElbowInside_bar))/(1.5),0)