Skip to content

Commit 117f80e

Browse files
author
Nick Grippin
committed
Fix logic and rounding
1 parent 0450522 commit 117f80e

File tree

1 file changed

+1
-1
lines changed
  • validation/src/main/scala/hmda/validation/rules/lar/macro

1 file changed

+1
-1
lines changed

validation/src/main/scala/hmda/validation/rules/lar/macro/Q061.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ object Q061 extends AggregateEditCheck[LoanApplicationRegisterSource, LoanApplic
2222

2323
val firstLienPropertyLoans =
2424
count(lars.filter(lar => lar.loan.propertyType == 1 && lar.actionTakenType == 1 && lar.lienStatus == 1 && lar.rateSpread != "NA")
25-
.filter(lar => lar.rateSpread.toInt >= 5))
25+
.filter(lar => lar.rateSpread.toDouble > 5.0))
2626

2727
val total = count(lars.filter(lar => lar.actionTakenType == 1))
2828

0 commit comments

Comments
 (0)