cerevra / int

38 stars 6 forks source link

Multiply doesn't work properly with float types #13

Closed dix75 closed 7 years ago

dix75 commented 7 years ago
uint32_t b = 10;
b *= 2.5;    // 25
uint512_t a = 10;
a *= 2.5;   // 20

p.s. Maybe there are any problems with other operations

cerevra commented 7 years ago

You are right. Thank you https://github.com/cerevra/int/commit/e38f0632bdf9a1769baf4a169a4a8ff8892311b0