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

Related questions

1 answer 210 views
1 answer 217 views
1 answer 209 views
1 answer 250 views
1 answer 257 views
1 answer 200 views
...