[..]
as any integral value in a float will fit in an int.
[..]
Will it? Most of them will not fit, but cast to int produces nonsensical value anyway as in this example:
cast(int)float.max With to!int you get a proper warning.
[..]
as any integral value in a float will fit in an int.
[..]
Will it? Most of them will not fit, but cast to int produces nonsensical value anyway as in this example:
cast(int)float.max With to!int you get a proper warning.