Function

copySign

Returns the first floating-point argument with the sign of the second floating-point argument.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

copySign

Android
public fun copySign(a: RemoteFloat, b: RemoteFloat): RemoteFloat

Returns the first floating-point argument with the sign of the second floating-point argument.

Parameters

a The value whose magnitude is used.
b The value whose sign is used.