std, all primitive integer types have
max_value() methods, whereas
f64 do not. Are there some special considerations?
f64 aren’t integer. Their respective minimum and maximum values are infinity and -infinity, respectively.
Float trait in the crate
num have these two methods and
The num crate is a deprecated mess.
(min_positive_value is also a different thing… it’s like the smallest number larger than
Did you just say that infinity is the minimum and -infinity is the maximum?
Of course it’s the other way round. Infinity is the maximum and negative infinity the minimum.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.