Half.CopySign(Int16, Int16) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the first parameter with the sign of the second parameter.
[Android.Runtime.Register("copySign", "(SS)S", "", ApiSince=26)]
public static short CopySign (short magnitude, short sign);
[<Android.Runtime.Register("copySign", "(SS)S", "", ApiSince=26)>]
static member CopySign : int16 * int16 -> int16
Parameters
- magnitude
- Int16
A half-precision float value providing the magnitude of the result
- sign
- Int16
A half-precision float value providing the sign of the result
Returns
A value with the magnitude of the first parameter and the sign of the second parameter
- Attributes
Remarks
Returns the first parameter with the sign of the second parameter. This method treats NaNs as having a sign.
Java documentation for android.util.Half.copySign(short, short)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.