Skip to content

Commit a7e6f91

Browse files
committed
fix for #641
1 parent 6e6da23 commit a7e6f91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/canmatrix/canmatrix.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ def phys2raw(self, value=None):
439439
"Value {} is not valid for {}. Min={} and Max={}".format(
440440
value, self, self.min, self.max)
441441
)
442-
raw_value = (value - self.offset) / self.factor
442+
raw_value = (value - self.float_factory(self.offset)) / self.float_factory(self.factor)
443443

444444
if not self.is_float:
445445
raw_value = int(raw_value)

0 commit comments

Comments
 (0)