Skip to content

Commit f8dc1d5

Browse files
committed
Link
1 parent 38ccfbb commit f8dc1d5

File tree

1 file changed

+4
-2
lines changed
  • x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/scalar/math

1 file changed

+4
-2
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/scalar/math/CopySign.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,10 @@ EvalOperator.ExpressionEvaluator.Factory create(
6262
private DataType dataType;
6363

6464
@FunctionInfo(
65-
description = "Returns a value with the magnitude of the first argument and the sign of the second argument. "
66-
+ "This function is similar to Java's Math.copySign(double magnitude, double sign).",
65+
description = """
66+
Returns a value with the magnitude of the first argument and the sign of the second argument.
67+
This function is similar to Java's Math.copySign(double magnitude, double sign) which is
68+
similar to `copysign` from [IEEE 754](https://en.wikipedia.org/wiki/IEEE_754).""",
6769
returnType = { "double", "integer", "long" }
6870
)
6971
public CopySign(

0 commit comments

Comments
 (0)