Open Search
    SAFEINT/SAFEUINT

    Functions

    Int32 SAFEINT32 (Float32 x)
     
    Int32 SAFEINT32 (Float64 x)
     
    UInt32 SAFEUINT32 (Float64 x)
     
    Int64 SAFEINT64 (Float32 x)
     
    Int64 SAFEINT64 (Float64 x)
     
    Int SAFEINT (Float64 x)
     
    Int SAFEINT (Float32 x)
     

    Detailed Description

    Function Documentation

    ◆ SAFEINT32() [1/2]

    Int32 cineware::SAFEINT32 ( Float32  x)

    Safely converts a 32-bit float value into Int32.

    Parameters
    [in]xA single-precision floating point value.
    Returns
    The converted Int32. The resulting value is clipped against the Int32 boundaries, without raising an exception.

    ◆ SAFEINT32() [2/2]

    Int32 cineware::SAFEINT32 ( Float64  x)

    Safely converts a 64-bit float value into Int32.

    Parameters
    [in]xA double-precision floating point value.
    Returns
    The converted Int32. The resulting value is clipped against the Int32 boundaries, without raising an exception.

    ◆ SAFEUINT32()

    UInt32 cineware::SAFEUINT32 ( Float64  x)

    Safely converts a 64-bit float value into UInt32.

    Parameters
    [in]xA double-precision floating point value.
    Returns
    The converted UInt32. The resulting value is clipped against the Int32 boundaries, without raising an exception.

    ◆ SAFEINT64() [1/2]

    Int64 cineware::SAFEINT64 ( Float32  x)

    Safely converts a 32-bit float value into Int64.

    Parameters
    [in]xA single-precision floating point value to convert.
    Returns
    The converted Int64. The resulting value is clipped against the Int64 boundaries, without raising an exception.

    ◆ SAFEINT64() [2/2]

    Int64 cineware::SAFEINT64 ( Float64  x)

    Safely converts a 64-bit float value into Int64.

    Parameters
    [in]xA double-precision floating point value to convert.
    Returns
    The converted Int64. The resulting value is clipped against the Int64 boundaries, without raising an exception.

    ◆ SAFEINT() [1/2]

    Int cineware::SAFEINT ( Float64  x)

    Safely converts a 64-bit float value into Int64.

    Parameters
    [in]xA double-precision floating point value to convert.
    Returns
    The converted Int64. The resulting value is clipped against the Int64 boundaries, without raising an exception.

    ◆ SAFEINT() [2/2]

    Int cineware::SAFEINT ( Float32  x)

    Safely converts a 32-bit float value into Int64.

    Parameters
    [in]xA single-precision floating point value to convert.
    Returns
    The converted Int64. The resulting value is clipped against the Int64 boundaries, without raising an exception.