How can I store the minimum value of i32 in a variable?
// Java Example :
int min = Integer.MIN_VALUE;
// C++ example
int min = INT_MIN;
I want to do something like:
let min: i32 = i32_MIN_VALUE;
You have some const defined:
MINMAXlet min: u32 = u32::MIN;
They are also defined for other primitive numeric types.
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