According to Swift, the greatest finite magnitude that can be stored as a Double
is much more than that of Int
.
print(Double.greatestFiniteMagnitude) // 1.7976931348623157e+308
However, the accepted answer to this question says that you may lose precision while storing large values.
So, what is the maximum value that can be saved as a Double without losing precision?