toExact

Converts x to the specified integral type rounded if necessary by mode

  1. T toExact(D x, RoundingMode mode)
    @IEEECompliant("convertToIntegerExactTiesToAway", 22)
    @IEEECompliant("convertToIntegerExactTiesToEven", 22)
    @IEEECompliant("convertToIntegerExactTowardNegative", 22)
    @IEEECompliant("convertToIntegerExactTowardPositive", 22)
    @IEEECompliant("convertToIntegerExactTowardZero", 22)
    T
    toExact
    (
    T
    D
    )
    (
    auto const ref D x
    ,)
    if (
    isIntegral!T &&
    )
  2. F toExact(D x, RoundingMode mode)

Throws

Meta