Belowland
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
alphacyberranger to Programmer Humor@programming.devEnglish • 2 years ago

Java

lemmy.world

message-square
94
fedilink
533

Java

lemmy.world

alphacyberranger to Programmer Humor@programming.devEnglish • 2 years ago
message-square
94
fedilink
alert-triangle
You must log in or register to comment.
  • @Lmaydev@programming.dev
    link
    fedilink
    4•2 years ago

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

    • larvyde
      link
      fedilink
      1•2 years ago

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

      • @Lmaydev@programming.dev
        link
        fedilink
        1•2 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
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
  • 22 users / day
  • 303 users / week
  • 1.31K users / month
  • 4.4K users / 6 months
  • 2 subscribers
  • 1.54K Posts
  • 50.3K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne
  • BE: 0.18.1
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org