okr765
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
orhtej2@eviltoast.org to Programmer Humor@programming.devEnglish · 22 hours ago

Floating point arithmetics

eviltoast.org

message-square
44
fedilink
702

Floating point arithmetics

eviltoast.org

orhtej2@eviltoast.org to Programmer Humor@programming.devEnglish · 22 hours ago
message-square
44
fedilink
  • Frezik@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    11
    ·
    20 hours ago

    You can also have a type which does it. Raku has a Rational type for this.

    • Kacarott@aussie.zone
      link
      fedilink
      arrow-up
      3
      ·
      13 hours ago

      Python has the Fraction type, and there are many more

    • dontsayaword@piefed.social
      link
      fedilink
      English
      arrow-up
      4
      ·
      19 hours ago

      Part of my first programming courses in the 90s in C were creating a native fraction type.

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 2.81K users / day
  • 5.19K users / week
  • 9.54K users / month
  • 19.6K users / 6 months
  • 1 local subscriber
  • 26.8K subscribers
  • 1.6K Posts
  • 51.2K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org