データ接続と統合Pipeline Builder の式Sign

Sign

サポート対象:バッチ、高速、ストリーミング

Returns -1.0 for a negative number, 1.0 for a positive number, and the number itself for zero or not a number.

式のカテゴリー: 数値

引数

  • Expression: Number to take the sign of.
    Expression<Numeric>

出力タイプ: Double

例

例1:基本ケース

引数の値:

  • Expression: value
value出力
2.51.0
-0.1-1.0

例2:Null ケース

引数の値:

  • Expression: value
value出力
nullnull