GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    myrmepropagandist (futurebird@sauropods.win)'s status on Saturday, 06-Dec-2025 16:21:31 JST myrmepropagandist myrmepropagandist

    The TI-34 is a fairly basic scientific #calculator. I’m a big fan because it’s easy to use and not overwhelming.

    I was reading the manual and discovered it has two functions:

    ipart(x)
    fpart(x)

    These return the integer and fraction parts of x.

    ipart(2.34)=2
    fpart(2.34)=.34

    Great! So, uh.. What are these typically used for? Why include them on such a *basic* calculator? #calculators #ticalc #ti34 #matheducation #mathchat

    In conversation about a month ago from sauropods.win permalink
    • Steve's Place repeated this.
    • Embed this notice
      myrmepropagandist (futurebird@sauropods.win)'s status on Saturday, 06-Dec-2025 16:21:29 JST myrmepropagandist myrmepropagandist
      in reply to

      On a slight tangent I have just noticed that on the TI 84 int(x) is NOT the same as in python. Who is to blame for this? #ti84 #python #horror

      In conversation about a month ago permalink

      Attachments


      1. https://cdn.masto.host/sauropodswin/media_attachments/files/115/650/566/695/048/678/original/0750de1c906e3c18.png
      Steve's Place repeated this.
    • Embed this notice
      David Chisnall (*Now with 50% more sarcasm!*) (david_chisnall@infosec.exchange)'s status on Saturday, 06-Dec-2025 16:22:57 JST David Chisnall (*Now with 50% more sarcasm!*) David Chisnall (*Now with 50% more sarcasm!*)
      in reply to

      @futurebird

      The TI calculator does what mathematics normally means (round to nearest).

      A programming language will do one of the things specified in IEEE 754 floating-point rounding modes. The default for Python (and C), I believe, is 'round towards zero', also known as truncation. This is implemented in floating point as a very simple normalisation operation (shift the mantissa so that the exponent is 1, which either shifts some zeroes in from the right or shifts some bits off to the right and loses them).

      The extra fun on the calculator might be that it's may be using some binary-coded decimal representation internally, because otherwise you have fun rounding errors from not being able to represent a lot of decimal fractions precisely in a binary floating-point value. More advanced calculators will store rational numbers fractions, which lets them avoid any precision loss until the final convert-to-decimal step that they do for display.

      In conversation about a month ago permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.