Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

Commit

Permalink
Added the possibility to convert Double to Int (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpeyr committed Jul 2, 2022
1 parent 65ab213 commit 3852c10
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions LeoCorpLibrary/Extensions/DoubleExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,5 +122,8 @@ public static double ToDays(this double d, TimeUnits timeUnits)
return d;
}
}


public static int ToInt(this double d) => (int)Math.Round(d);
}
}

0 comments on commit 3852c10

Please sign in to comment.