Your Int and Double Can Break the Bank (Literally) | The Decimal Type in Swift
Автор: The Code Bird
Загружено: 2023-04-28
Просмотров: 841
This week, I explore the Decimal type shipped in the Foundation framework: why it exists, how it’s different from Swift’s Double or Float, and when it’s appropriate to use each of them.
Support the Swift Bird by…
• …joining as a member: / @thecodebird
• …becoming a patron: https://url.ykvm.com/patreon
• …buying me a coffee: https://url.ykvm.com/bmac
Links:
• Decimal documentation: https://developer.apple.com/documenta...
• NSDecimalNumber documentation: https://developer.apple.com/documenta...
• Decimal’s source: https://github.com/apple/swift-coreli...
• When should you use Decimal instead of Double: https://www.jessesquires.com/blog/202...
Chapters:
• 0:00 Intro
• 1:48 What’s the Problem?
• 3:35 How Is Decimal Different?
• 6:23 How Does It Work Internally?
• 8:04 Any Better Alternatives?
• 9:22 Recap
• 10:18 Outro
The Swift Bird, a Yakov Manshin production 🎞️
#Decimal #Swift #softwaredevelopment
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: