c - Manually doing soft-float add -
i need write program in c takes 2 floating point numbers , produces sum output using int, pointers , malloc(). no other data type. (single precision) , i'm helpless.
tip: floating point number x
2 integers: mantissa m
, exponent e
such x = m * 2^e
. should started.
good read: what every programmer should know floating-point arithmetic
edit: understood question exercise understand floating point numbers. maybe i'm wrong…
Comments
Post a Comment