jlai.lu
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
alphacyberranger@lemmy.world
cake
to Programmer Humor@programming.devEnglish · 3 years ago

Java

lemmy.world

message-square
76
link
fedilink
533

Java

lemmy.world

alphacyberranger@lemmy.world
cake
to Programmer Humor@programming.devEnglish · 3 years ago
message-square
76
link
fedilink
  • Lmaydev@programming.devdeleted by creator
    link
    fedilink
    arrow-up
    4
    ·
    3 years ago

    Because ints are way smaller. Over a certain value it would always fail.

    • larvyde@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      3 years ago

      Yea but at those values floating points can’t represent fractions anyway

      • Lmaydev@programming.devdeleted by creator
        link
        fedilink
        arrow-up
        1
        ·
        3 years ago

        Exactly. So if cast to int you’d either get an error or 0 for everything above a certain value.

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.

  • 1.37K users / day
  • 2.18K users / week
  • 6.22K users / month
  • 17.1K users / 6 months
  • 142 local subscribers
  • 32.2K subscribers
  • 2.41K Posts
  • 93K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.19
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org