tuwien2020 / tgi-pages

Open tools for the TGI course at the TU Vienna
https://tuwien2020.github.io/tgi-pages/#/
The Unlicense
12 stars 5 forks source link

IEEE-calculator #94

Open peter-fuchs opened 2 years ago

peter-fuchs commented 2 years ago

Allows addition, subtraction and multiplication of numbers written in the IEEE 754-format. Division still needs to be added, calculation with denormalized values might be a bit off sometimes, still working on that.

TODOs:

peter-fuchs commented 2 years ago

Awesome code! I left a few comments here and there.

If you want, I can also address some of the comments and push the fixes. For example, I'd offer to take care of the entire IEEEFunctionInput part, since it's mostly boring hooking-up stuff. And also involves a bit of knowing how to get Vue to do what you want.

Sure, I'd be glad if you could do that.

I also pushed some fixes to src/math/binary-number.ts, mainly calculation with denormalized values (in IEEENumber.normalizeMantissa).

stefnotch commented 2 years ago

@peter-fuchs Okay, I pushed some tweaks, hopefully that's helpful.