fpToInt
private fn
Dst fpToInt(Dst, S)(S v) if (is(S == float) || is(S == double) || is(S == real))Floating-to-integer conversion requiring an exactly integral, in-range value.
Parameters
Dst | integer destination type. |
S | floating source type. |
v | the source value. |
Returns
The checked conversion.
Throws
VarException for NaN, infinities, fractions and out-of-range values.