Udostępnij za pośrednictwem


Math.Scalb Method

Definition

Overloads

Scalb(Double, Int32)

Returns d &times; 2<sup>scaleFactor</sup> rounded as if performed by a single correctly rounded floating-point multiply to a member of the double value set.

Scalb(Single, Int32)

Returns f &times; 2<sup>scaleFactor</sup> rounded as if performed by a single correctly rounded floating-point multiply to a member of the float value set.

Scalb(Double, Int32)

Returns d &times; 2<sup>scaleFactor</sup> rounded as if performed by a single correctly rounded floating-point multiply to a member of the double value set.

[Android.Runtime.Register("scalb", "(DI)D", "")]
public static double Scalb (double d, int scaleFactor);
[<Android.Runtime.Register("scalb", "(DI)D", "")>]
static member Scalb : double * int -> double

Parameters

d
Double

number to be scaled by a power of two.

scaleFactor
Int32

power of 2 used to scale d

Returns

d &times; 2<sup>scaleFactor</sup>

Attributes

Remarks

Java documentation for java.lang.Math.scalb(double, int).

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.

Applies to

Scalb(Single, Int32)

Returns f &times; 2<sup>scaleFactor</sup> rounded as if performed by a single correctly rounded floating-point multiply to a member of the float value set.

[Android.Runtime.Register("scalb", "(FI)F", "")]
public static float Scalb (float f, int scaleFactor);
[<Android.Runtime.Register("scalb", "(FI)F", "")>]
static member Scalb : single * int -> single

Parameters

f
Single

number to be scaled by a power of two.

scaleFactor
Int32

power of 2 used to scale f

Returns

f &times; 2<sup>scaleFactor</sup>

Attributes

Remarks

Java documentation for java.lang.Math.scalb(float, int).

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.

Applies to