You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
4.2949673f9 is one greater than the maximum value of a UInt32 (4.2949673f9 == typemax(UInt32)+1) so an inexact error should be thrown here:
function (::Type{$Ti})(x::$Tf)
if ($(Tf(typemin(Ti))) <= x <=$(Tf(typemax(Ti)))) &&isinteger(x)
returnunsafe_trunc($Ti,x)
elsethrow(InexactError($(Expr(:quote,Ti.name.name)), $Ti, x))
endend
However, the comparison that happens is 4.2949673f9 <= Float32(typemax(UInt32)) which is true even though 4.2949673f9 > typemax(UInt32).
The text was updated successfully, but these errors were encountered:
4.2949673f9
is one greater than the maximum value of aUInt32
(4.2949673f9 == typemax(UInt32)+1
) so an inexact error should be thrown here:However, the comparison that happens is
4.2949673f9 <= Float32(typemax(UInt32))
which is true even though4.2949673f9 > typemax(UInt32)
.The text was updated successfully, but these errors were encountered: