c2r0b / vnmsim

Von Neumann Machine Simulator

Home Page:https://vnmsim.c2r0b.ovh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DIV is not working properly

manuelmatarueda opened this issue · comments

Hello the DIV command is returning a real number with decimals, whilest it should return only integer part. This makes that some of the samples and exercises doesn't work in the right way. Please fix it, then everything should work Ok.

For example the even sample for 5 is doing 5 / 2 = 2.5 then 5 * 2.5 = 5 then 5 - 5 = 0 and returning it is even what is not correct.

Thanks.

commented

Fixed. Thanks!

Great, I will put my students to work with it inmediately.
Thanks!