You can use the NSDecimalNumber
class from Cocoa. It is not infinite precision, but it can represent 38 decimal digits of precision, which may be enough for what you need.
More Related Contents:
- Alternative to performSelector in Swift?
- NSObject subclass in Swift: hash vs hashValue, isEqual vs ==
- creating custom tableview cells in swift
- Return instancetype in Swift
- Swift do-try-catch syntax
- Send data from TableView to DetailView Swift
- Why optional constant does not automatically have a default value of nil [duplicate]
- How do I declare an array of weak references in Swift?
- C++ handling very large integers
- Getting the decimal part of a double in Swift
- UIImageView pinch zoom swift
- Custom back button for NavigationView’s navigation bar in SwiftUI
- Why can’t Swift’s greater-than or less-than operators compare optionals when the equality operators can?
- Convert String to URL (Why is resulting variable nil)
- Value of type ‘StorageMetadata’ has no member ‘downloadURL’
- Convert a two byte UInt8 array to a UInt16 in Swift
- Swift – IBOutletCollection equivalent
- Does swift copy on write for all structs?
- fatal error: swapping a location with itself is not supported with Swift 2.0
- How can I get a real IP address from DNS query in Swift?
- What is the point of having two different names for the same parameter?
- Swift lazy instantiating using self
- Getting “file not found” in Bridging Header when importing Objective-C frameworks into Swift project
- SwiftUI: Pop to root view when selected tab is tapped again
- “classname has no member functionname” when adding UIButton target
- Is SwiftUI backwards-compatible with iOS 12.x and older?
- No such module ‘RestKit’ with cocoapods and swift
- What’s the difference between using ARAnchor to insert a node and directly insert a node?
- What is the reduce() function doing, in Swift
- Core Data Predicate Filter By Today’s Date