Following the bit-level floating-point coding rules, implement the function with the following prototype:
For floating-point number f , this function computes (int) f . Your function should round toward zero. If f cannot be represented as an integer (e.g., it is out of range, or it is NaN), then the function should return 0x80000000.
Test your function by evaluating it for all 232 values of argument f and comparing
the result to what would be obtained using your machine’s floating-point
operations.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.