Truncates the value to the nearest integer, rounding towards zero.
If NaN, returns 0
.
If larger than the maximum value for Int8
(including Inf), returns the maximum value of Int8
(i.e. Int8.maxValue
).
If smaller than the minimum value for Int8
(including -Inf), returns the minimum value of Int8
(i.e. Int8.minValue
).
Truncates the value to the nearest integer, rounding towards zero.
If NaN, returns 0
.
If larger than the maximum value for Int16
(including Inf), returns the maximum value of Int16
(i.e. Int16.maxValue
).
If smaller than the minimum value for Int16
(including -Inf), returns the minimum value of Int16
(i.e. Int16.minValue
).
Truncates the value to the nearest integer, rounding towards zero.
If NaN, returns 0
.
If larger than the maximum value for Int32
(including Inf), returns the maximum value of Int32
(i.e. Int32.maxValue
).
If smaller than the minimum value for Int32
(including -Inf), returns the minimum value of Int32
(i.e. Int32.minValue
).
Truncates the value to the nearest integer, rounding towards zero.
If NaN, returns 0
.
If larger than the maximum value for Int64
(including Inf), returns the maximum value of Int64
(i.e. Int64.maxValue
).
If smaller than the minimum value for Int64
(including -Inf), returns the minimum value of Int64
(i.e. Int64.minValue
).
Truncates the value to the nearest integer, rounding towards zero.
If NaN, returns 0
.
If larger than the maximum value for ISize
(including Inf), returns the maximum value of ISize
(i.e. ISize.maxValue
).
If smaller than the minimum value for ISize
(including -Inf), returns the minimum value of ISize
(i.e. ISize.minValue
).
Obtains a Float32
whose value is near the given Int32
. It will be exactly the value of the
given Int32
if such a Float32
exists. If no such Float32
exists, the returned value will either
be the smallest Float32
this is larger than the given value, or the largest Float32
this is smaller
than the given value.
Obtains a Float32
whose value is near the given Int64
. It will be exactly the value of the
given Int64
if such a Float32
exists. If no such Float32
exists, the returned value will either
be the smallest Float32
this is larger than the given value, or the largest Float32
this is smaller
than the given value.
Obtains a Float32
whose value is near the given ISize
. It will be exactly the value of the
given ISize
if such a Float32
exists. If no such Float32
exists, the returned value will either
be the smallest Float32
this is larger than the given value, or the largest Float32
this is smaller
than the given value.