C# has a built-in Math
class which provides useful mathematical functions and operations. The class has the ScaleB()
function, which is used to compute _base
* (2 ^ _power
).
public static double ScaleB (double _base, int _power);
ScaleB()
.ScaleB()
.Double
number found by computing _base
* (2 ^ _power
).using System;class Educative{static void Main(){double result = Math.ScaleB(3, 2);System.Console.WriteLine("ScaleB(3, 2) = "+ result);double result1 = Math.ScaleB(2.55, 4);System.Console.WriteLine("ScaleB(2.55, 4) = "+ result1);}}