Skip to content

tuple_roundTupleRoundTupleRoundtuple_roundtuple_round🔗

説明🔗

tuple_roundTupleRoundTupleRoundtuple_roundtuple_round — tuple を整数値の tuple に変換する。

書式🔗

tuple_round( number T, out number Round )void TupleRound( const HTuple& T, HTuple* Round )static void HOperatorSet.TupleRound( HTuple t, out HTuple round )def tuple_round( t: MaybeSequence[Union[float, int]] ) -> Sequence[int]

def tuple_round_s( t: MaybeSequence[Union[float, int]] ) -> intHerror tuple_round( double T, Hlong* Round )

Herror T_tuple_round( const Htuple T, Htuple* Round )

HTuple HTuple::TupleRound( ) const

HTuple HTuple.TupleRound( )

説明🔗

tuple_roundTupleRound は入力 tuple Ttt を最も近い整数に丸め、 整数の tuple へ変換します。 文字の変換は考慮されません

例外: 入力tuple が 空🔗

入力tupleが空の場合、この関数は空のtupleを返します。

HDevelopインライン演算🔗

HDevelopは tuple_roundTupleRound の代わりとなるインライン演算を備えており、以下の構文形式で使 用することができます::

Round := round(T)

実行情報🔗

実行情報
  • マルチスレッドタイプ: リエントラント(非排他なオペレーターと並列に動作)

  • マルチスレッドスコープ: グローバル(他のスレッドから呼び出される可能性あり)

  • 並列演算処理には未対応

パラメーター🔗

Ttt (input_control) number(-array) → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)MaybeSequence[Union[float, int]]Htuple (double / Hlong)

入力 tuple

Roundroundround (output_control) number(-array) → (integer)HTuple (Hlong)HTuple (int / long)Sequence[int]Htuple (Hlong)

丸めの結果

他のオペレーターとの組み合わせ🔗

組み合わせ

他の選択候補

tuple_intTupleInt

モジュール🔗

Foundation