Is there any way to get the maximum number of type Double in Swift? The number such that anyDoubleNumber < theNumber
will always be true.
I have found the solution to my own question.
var theNumber = Double.infinity
Should do the work. :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With