Function

sign

Returns the sign of the given RemoteFloat a.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

sign

Android
public fun sign(a: RemoteFloat): RemoteFloat

Returns the sign of the given RemoteFloat a.

Parameters

a The value whose sign is to be returned.

Returns

1.0 if the value is positive, -1.0 if it is negative, and 0.0 if it is zero.