you're a fucking retard
BI-YEARLY PROGRAMMING THREAD
C only handles full and floating point numbers fucking retard
The entire point of programming is to make computers do things they didn't do before. It's absolutely possible to handle fractions in C. And that program isn't even written in C.
Honestly, I'm not sure what you're trying to say.
This is nothing in the entire world to do with int or float. It has to do with your interface not being smart enough to accept a string "5/10" and parse out the 5 and the 10 instead of having the user type each one individually.
And then you have the user fucking type "done" to finish what the hell.
Aren't Game Boy emulators exactly that?
it adds fractions and simpilifies, I'd like to be able to enter fractions, but I don't know how to do that yet. read first semester c++
Pretty close. The Gameboy has a Z80/intel8080 hybrid sort of CPU.
After you add your fractions, you should use a normalization routine to put them in a canonical form. Hint: Use the GCD algorithm, both the recursive and imperative versions are dead simple to write, and it'll save you from that abomination at the bottom of your code.
I'm confused what you mean, isn't that what I did?
I wrote a hexdumper in Retro Forth, going to work it further later. I posted it at >>>/byte/8, you should check it out if you like concatenative languages, they're quite like functional languages but (I would reckon) more readable and more practical. look at Joy as an example.