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 118 views
1 answer 121 views
1 answer 121 views
1 answer 171 views
1 answer 166 views
1 answer 121 views
...