should-i-rent/crates/immo-core/src
Marcel Enguehard 0cf311bdf4 Store the annual nominal rate as a fraction, not a percentage
The field was called annual_rate_in_percent but nothing multiplied it by 100,
so a 3,41 % loan would have been stored as 3.41 and read as 341 %. Rename it
to annual_nominal_rate, which is what it holds, and add an explicit
annual_nominal_rate_in_percent() accessor for callers that want the display
form. Drop the trailing % from the error message, which was making the same
claim.

The nominal qualifier is there because TAEG will join this struct later and
the two must never be confused.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-23 15:17:15 +02:00
..
euros.rs Rename Euros::from_cents to from_cents_as_i64 2026-08-23 15:16:37 +02:00
lib.rs Add LoanOffer with validating constructor 2026-07-30 15:09:49 +02:00
loan_offer.rs Store the annual nominal rate as a fraction, not a percentage 2026-08-23 15:17:15 +02:00