Last active
November 6, 2021 06:52
-
-
Save dimkagithub/6165ac6f255446ee29f360f94bcf722a to your computer and use it in GitHub Desktop.
Double extension
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension Double { | |
var roundTo: Double { (self * 100).rounded() / 100 } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment