How to get the min and max integer in Swift

1 Answer

0 votes
import Foundation

print(Int.max)

print(Int.min )

 
/*
run:
 
9223372036854775807
-9223372036854775808

*/

 



answered May 17, 2025 by avibootz
...