Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit 53b732f

Browse files
committed
ConvertUnits, ticket:4081
1 parent 5d9af84 commit 53b732f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Compiler/Script/CevalScriptBackend.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ algorithm
819819
C = (F - 32)/1.8 = F/1.8 - 32/1.8
820820
*/
821821
scaleFactor = realDiv(scaleFactor2, scaleFactor1);
822-
offset = realSub(offset2, realDiv(offset1, scaleFactor1));
822+
offset = realDiv(realSub(offset2, offset1), scaleFactor1);
823823
then
824824
(cache,Values.TUPLE({Values.BOOL(b),Values.REAL(scaleFactor),Values.REAL(offset)}),st);
825825

0 commit comments

Comments
 (0)