Search code examples
zig

zig maxValue of integer and float types


zig used to have @maxValue to query the max value for integer types, but I think it was removed several versions ago. Is there a replacement? I can´t find it.


Solution

  • You can use std.math.maxInt().