ilogbl(): This function is available in the file math.h. This function extracts the value of the unbiased exponent from the floating-point argument arg
, and returns it as a signed integer value.
Parameters: One parameter is required for this function.
arg: The floating-point value.
Syntax:
ilogbl(arg)
For Example:
ilogbl(1000.25) = > It returns 9.
i
Approach
C++
#include <bits/stdc++.h>using namespace std;int main(){long double x = 1000.25;cout << ilogbl(x) << "\n";return 0;}
No comments:
Post a Comment