Introduction
Introduction Statistics Contact Development Disclaimer Help
Post B0qTsgIk1dqACFLKYi by [email protected]
More posts by [email protected]
Post #B0qFCUIWrglPRpEKVE by [email protected]
0 likes, 0 repeats
The TI-34 is a fairly basic scientific #calculator. I’m a big fan because it�…
Post #B0qFCUPcRKR1noXzYO by [email protected]
0 likes, 1 repeats
On a slight tangent I have just noticed that on the TI 84 int(x) is NOT the sam…
Post #B0qFCUWM2Hp48hhN3I by [email protected]
0 likes, 1 repeats
@futurebird I think the TI-84 is MicroPython, I wonder if it exhibits the same …
Post #B0qFaCMxAtkcnEbcUC by [email protected]
0 likes, 0 repeats
@jordan That’s not the 84 running python that’s how the TI calculator evalu…
Post #B0qFaCSyoUZV5vQQsa by [email protected]
0 likes, 2 repeats
@futurebird ah I see!
Post #B0qTiYoF1dtI45FcTA by [email protected]
0 likes, 0 repeats
@futurebird So annoying that different programming languages handle this differ…
Post #B0qTir8ks6zkuuzFwW by [email protected]
0 likes, 0 repeats
@futurebird What does the TI-BASIC version of `int` return? Perhaps they're…
Post #B0qTiscvLQinWm6rbc by [email protected]
0 likes, 0 repeats
@futurebird the ti 84 rounds, while python truncates.
Post #B0qTisk0v4OPslQWem by [email protected]
0 likes, 0 repeats
@futurebird it's not really a surprise
Post #B0qTitNiXS9Tru0EXg by [email protected]
0 likes, 0 repeats
@futurebird the ti 84 is a calculator, not really a proper programming language…
Post #B0qTlQpT9UdaBRC760 by [email protected]
0 likes, 0 repeats
@futurebird “learning math it’s important because it’s the same everywher…
Post #B0qTlQxcfB9waj0cnw by [email protected]
0 likes, 0 repeats
@sidereal You see this is why I don’t like this even if I can explain why it …
Post #B0qTmf8DSgn6paY9rs by [email protected]
0 likes, 0 repeats
@futurebird Looks like a Python screwup. Excel gives -4.
Post #B0qTmfGix3b3FyWx84 by [email protected]
0 likes, 0 repeats
@danpmoore @futurebird C gives -3
Post #B0qTmfaZlFTaFXoo4W by [email protected]
0 likes, 0 repeats
@futurebird Sorry, that would be a TI screwup.
Post #B0qTneKjuk3Oe5sWMC by [email protected]
0 likes, 0 repeats
@futurebird just piling on here: I would have defined it as your Python does (t…
Post #B0qTneSXRkIB2HWkVs by [email protected]
0 likes, 0 repeats
@adardis @futurebird Are you a programmer or a mathematician?
Post #B0qTouuDmgmYKj4xUW by [email protected]
0 likes, 0 repeats
@futurebird There's a definitional difference. Python describes the int() f…
Post #B0qTpCusoy0UBzWk1Q by [email protected]
0 likes, 0 repeats
@futurebird It would be clunky but I sometimes wish we had designed all program…
Post #B0qTrce48JgKZGoQdM by [email protected]
0 likes, 0 repeats
@futurebird Different program languages using the same text string as the name …
Post #B0qTsgBITJsxp9rNxI by [email protected]
0 likes, 0 repeats
Casting to an integer will cut off the decimal point (i.e. floor(number)) which…
Post #B0qTsgIk1dqACFLKYi by [email protected]
0 likes, 0 repeats
@iamada @futurebird did you mean trunc(number) instead of floor(number) ?
Post #B0qTt62gJyRW1y1s8W by [email protected]
0 likes, 0 repeats
@futurebirdThe calculator must be doing something kinda wrong, because integers…
Post #B0qTtvxVITCN2y0THk by [email protected]
0 likes, 0 repeats
@sidereal @futurebird TBH “int()” is not a mathematical function. Mathemati…
Post #B0qTuJPe60NLmuLlqK by [email protected]
0 likes, 0 repeats
@futurebird grumble grumble there’s a reason we have ceiling and floor
Post #B0qTuJWjfe2y8tfQtU by [email protected]
0 likes, 0 repeats
@gemini6ice @futurebird And truncate.
Post #B0qTvF5ndwxmg9Vjxg by [email protected]
0 likes, 0 repeats
@futurebird they are doing what would generally be expected in their domains. a…
Post #B0qTwTzPk4bjAe7ECO by [email protected]
0 likes, 0 repeats
@futurebird I think python is just doing it the way c does when you write `int …
Post #B0qTyoj7c2jQ46blR2 by [email protected]
0 likes, 0 repeats
@mdc I’m showing what TI basic would return.
Post #B0qTyopVEJpsNtarNg by [email protected]
0 likes, 0 repeats
@futurebird Uh, sorry I'm dumber than usual today. Perhaps I should wait fo…
Post #B0qTzs9yKlpb0CfcoK by [email protected]
0 likes, 0 repeats
@gbargoud @danpmoore @futurebird My impression is that almost all programming l…
Post #B0qU15Nif4OKIYgA9Q by [email protected]
0 likes, 0 repeats
@futurebird I would say Python is probably to blame.When you think of convertin…
Post #B0qU2VohrSGaZjyxQu by [email protected]
0 likes, 0 repeats
@mdc nah it’s not you this is a little confusing— and I wonder if it should…
Post #B0qU2vq17ClPHKnN5M by [email protected]
0 likes, 0 repeats
@futurebird Related, all the variations in how modulo works across programming …
Post #B0qU55A9PutYmIEpQu by [email protected]
0 likes, 0 repeats
@peterdrake @danpmoore @futurebird I think it's all languages with C as an …
Post #B0qU55GB3ViR4z3dpI by [email protected]
0 likes, 0 repeats
@gbargoud @peterdrake @danpmoore @futurebird I believe that’s the way the HP-…
Post #B0qU5UA0TadOJ5MZBA by [email protected]
0 likes, 0 repeats
@risc Ok but that calculator also runs python which means you can get both res…
Post #B0qU63WuyOl20HLrFY by [email protected]
0 likes, 0 repeats
@oblomov @sidereal @futurebird Truncating to integer part is floor for positive…
Post #B0qU7IzGzMBuEWD5dY by [email protected]
0 likes, 0 repeats
@futurebird The TI calculator does what mathematics normally means (round to ne…
Post #B0qU7zwFIUJrRa7mO8 by [email protected]
0 likes, 0 repeats
@dave_andersen @futurebird haskell is better for this than most langs (has div …
Post #B0qU8usJbm2m1tiwfw by [email protected]
0 likes, 0 repeats
@llewelly @futurebird ✅ (yes)
Post #B0qU8uzlA5zyOzCtHM by [email protected]
0 likes, 0 repeats
@iamada @llewelly @futurebird this is the difference - int() is actually floor(…
Post #B0qU8v6qjjfakyWYKW by [email protected]
0 likes, 0 repeats
@letsbekind2 @futurebird @llewelly we did it fedi, we figured it out! :neocat_h…
Post #B0qUBMFwmDfVWuwRyS by [email protected]
0 likes, 0 repeats
@futurebird would a child use Python without understanding it and/or crying?
Post #B0qUEjYcbFn4fMHobA by [email protected]
0 likes, 0 repeats
@futurebird Python evaluates int(x) as [x], whereas TI evaluates it as [|x|]*si…
Post #B0qb62rq8UA5cz4zzM by [email protected]
0 likes, 1 repeats
@futurebird Excel stores dates as numbers where the integer part is the day and…
You are viewing proxied material from pleroma.anduin.net. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.