Đã Đóng

Implement two functions for converting between IEEE single-precision floating-point and 32-bit two's complement integer, and one function to convert a IEEE single-precision floating point number to a IEEE double-precision floating point number

The f2i routine should take one 32-bit integer as its only argument and should return a 32-bit

integer. However, the input value should be interpreted to be actually an single-precision

floating-point value. The return value should be the result of converting the input value to 32-bit

two's complement integer. The conversion should be implemented using only integer

operations. Be sure to handle negative, NaN, infinity and de-normalized input floating-point

values.

The i2f routine should take one 32-bit integer as its only argument and should return a 32-bit

integer. However, the return value should be interpreted to be actually an single-precision

floating-point value. The return value should be the result of converting the input integer value to

IEEE single-precision floating point. The conversion should be implemented using only

integer operations. Be sure to handle negative input values.

The s2d routine should take one 32-bit integer as its only argument and should return a 64-bit

integer. However, the input value should be interpreted to be actually an single-precision

floating-point value and the return value should be interpreted to be actually an double-

precision floating-point value. The return value should be the result of converting the input

single-precision floating-point value to double-precision floating point. The conversion

should be implemented using only integer operations.

You should use the the standard header files stdint.h and inttypes.h. These header files define

size-specific integer types (e.g. int32_t) and portable printf formats for those types (e.g.

PRIx32).

For example: int32_t x; printf("x is %" PRId32 "\n", x);

Kĩ năng: Lập trình C++, Lập trình C, Thuật toán, Lắp ráp

Xem nhiều hơn: stored procedure convert function, convert function, systemgraphic convert dpi integer, convert character integer, convert date integer sorting vbnet, implement excel rate function methodfunction, implement financial excel function rate, implement excel rate function, mips convert string integer, visual basic convert function, convert function matlab vbnet, implement save password function, convert time integer shell script, implement goal seek function vbnet, implement excel irr function, implement excel pv function, writing mips functions convert integer floating point, convert c++ code to s-function

Về Bên Thuê:
( 2 nhận xét ) delhi, India

ID dự án: #29480817

2 freelancer chào giá trung bình₹7000 cho công việc này

nayeem4444

Hwlllloooooooooooooooooo I’m expert in This area . Pleassseeee contact me to discuss more on your requirements

₹1500 INR trong 1 ngày
(29 Nhận xét)
4.6
SyedaRabiaTariq3

hi dear i just check your description, and i am interested in your project. i am expert in c++. if you need quality work than feel free to contact me. Thanks.

₹12500 INR trong 6 ngày
(2 Nhận xét)
0.0