diff --git a/src/ofxstatement/ofx.py b/src/ofxstatement/ofx.py
index 862cebe..888c7d5 100644
--- a/src/ofxstatement/ofx.py
+++ b/src/ofxstatement/ofx.py
@@ -260,7 +260,11 @@ def buildInvestTransaction(self, line: InvestStatementLine) -> None:
line.unit_price,
precision=self.invest_transactions_float_precision,
)
- self.buildAmount("UNITS", line.units)
+ self.buildAmount(
+ "UNITS",
+ line.units,
+ precision=self.invest_transactions_float_precision,
+ )
self.buildAmount(
"TOTAL",
diff --git a/src/ofxstatement/tests/test_ofx_invest.py b/src/ofxstatement/tests/test_ofx_invest.py
index 9ad30c5..433a5af 100644
--- a/src/ofxstatement/tests/test_ofx_invest.py
+++ b/src/ofxstatement/tests/test_ofx_invest.py
@@ -87,7 +87,7 @@
OTHER
1.24000
138.28000
- 3.00
+ 3.00000
-416.08000
@@ -107,7 +107,7 @@
OTHER
0.28000
225.63000
- -5.00
+ -5.00000
1127.87000