Skip to content

Commit

Permalink
ConvertUnits, ticket:4081
Browse files Browse the repository at this point in the history
  • Loading branch information
rfranke committed Oct 20, 2016
1 parent 5d9af84 commit 53b732f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/Script/CevalScriptBackend.mo
Expand Up @@ -819,7 +819,7 @@ algorithm
C = (F - 32)/1.8 = F/1.8 - 32/1.8
*/
scaleFactor = realDiv(scaleFactor2, scaleFactor1);
offset = realSub(offset2, realDiv(offset1, scaleFactor1));
offset = realDiv(realSub(offset2, offset1), scaleFactor1);
then
(cache,Values.TUPLE({Values.BOOL(b),Values.REAL(scaleFactor),Values.REAL(offset)}),st);

Expand Down

0 comments on commit 53b732f

Please sign in to comment.