Skip to content

Commit

Permalink
Fix bug where 1d30.0m + 1d30.0m gave 2d60.0m instead of 3d00.0m
Browse files Browse the repository at this point in the history
  • Loading branch information
eskil committed Jan 22, 2025
1 parent 6ab666e commit 523ba80
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions DegreeCalculator/Model/DegreeCore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ struct Expr: CustomStringConvertible, Hashable, Codable {
// this extremely literal version is an easy to
// understand/read reflection of how a person does
// this math.

while minutes > 60.0 {
while minutes >= 60.0 {
degrees += 1
minutes -= 60.0
}
Expand Down

0 comments on commit 523ba80

Please sign in to comment.