Your Int and Double Can Break the Bank (Literally) | Decimal in Swift |

Поделиться
HTML-код
  • Опубликовано: 28 июн 2024
  • 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.
    You can support me by…
    • …buying me a coffee: www.buymeacoffee.com/SwiftBird
    • …becoming a patron: / swiftbird
    Links:
    • Decimal documentation: developer.apple.com/documenta...
    • NSDecimalNumber documentation: developer.apple.com/documenta...
    • Decimal’s source: github.com/apple/swift-coreli...
    • When should you use Decimal instead of Double: 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 is produced by / yakovmanshin .
    #Decimal #Swift #softwaredevelopment
  • НаукаНаука

Комментарии •