Help with my calculator.
the calculator i'm working on for a school project isn't working with fractions. an invalid thing pops up that i don't understand. just want to know if there is any way to use fractions in python. Thanks!
computer languages only work with decimals.
That is not true, whatsoever. How do you think an OS has interrupt calls? Via using an integer(example the kernel interrupt call is 0x80(which is 128 in hex).
So, if your claim was truthful, that would mean all and any "integers" that you see in a programming language, ex in C, would automatically be converted to a decimal. But it's not. Why's that? Because integers and floating point numbers(decimals) exist in computer languages.
If it didn't, why would there be such a thing as type 'int' in C/C++/Go/Java etc?.