The TI-34 is a fairly basic scientific #calculator.
-
@futurebird What does the TI-BASIC version of `int` return? Perhaps they're trying to match the expected result?
I’m showing what TI basic would return.
-
I’m showing what TI basic would return.
@futurebird Uh, sorry I'm dumber than usual today. Perhaps I should wait for the rest of the post to load before commenting
-
@futurebird “learning math it’s important because it’s the same everywhere you go!” - my lying ass math teacher in grade school
-
@futurebird Uh, sorry I'm dumber than usual today. Perhaps I should wait for the rest of the post to load before commenting
nah it’s not you this is a little confusing— and I wonder if it should be considering these are educational devices.
I do think part of the problem is “int” is a type in python— but it’s just an operation on the calculator.
-
@futurebird “learning math it’s important because it’s the same everywhere you go!” - my lying ass math teacher in grade school
You see this is why I don’t like this even if I can explain why it happens.
-
@futurebird they are doing what would generally be expected in their domains. a person using the calculator is unlikely to think of a float as an integer and fractional part, while a programmer is quite likely to think like that
-
@futurebird just piling on here: I would have defined it as your Python does (the integer part).
I just asked Common Lisp what it does (my current learn-a-computer-language hobby) and it doesn't pre-define an integer function. The manual says "The ceiling, floor, round and truncate functions convert floating point or rational numbers to integers".
-
@futurebird they are doing what would generally be expected in their domains. a person using the calculator is unlikely to think of a float as an integer and fractional part, while a programmer is quite likely to think like that
@risc Ok but that calculator also runs python which means you can get both results on the same device you hand to children.
-
@futurebird just piling on here: I would have defined it as your Python does (the integer part).
I just asked Common Lisp what it does (my current learn-a-computer-language hobby) and it doesn't pre-define an integer function. The manual says "The ceiling, floor, round and truncate functions convert floating point or rational numbers to integers".
@adardis @futurebird Are you a programmer or a mathematician?
-
@adardis @futurebird Are you a programmer or a mathematician?