NumericLimits
Exposes exact finite numeric extrema for one supported representation.
Module std.math
import std.math;Public declaration contracts and authored examples. A page can document several related symbols. Implementation bodies are excluded.
NumericLimits
pub struct NumericLimits<T> where T: Numeric, Copyable, DefaultableExposes exact finite numeric extrema for one supported representation.
This compile-time utility contains no runtime state, allocation or target-host query. Floating MinValue means the most negative finite number; MaxValue means the largest finite number. Target-width integers use the selected target facts. T: Copyable, Defaultable supported built-in numeric representation.
NumericLimits.fn
pub static const fn MinValue() -> TReturns the lowest finite value of the exact destination type. Return: Zero for unsigned integers, signed minimum or negative finite float maximum.
NumericLimits.fn
pub static const fn MaxValue() -> TReturns the highest finite value of the exact destination type. Return: Exact integer maximum or largest finite floating value.