Lemmy.one
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
alphacyberranger@lemmy.world to Programmer Humor@programming.devEnglish · 2年前

Java

lemmy.world

message-square
77
fedilink
593

Java

lemmy.world

alphacyberranger@lemmy.world to Programmer Humor@programming.devEnglish · 2年前
message-square
77
fedilink
  • lysdexic@programming.dev
    link
    fedilink
    English
    arrow-up
    33
    ·
    2年前

    Also, double can and does in fact represent integers exactly.

    • Killing_Spark@feddit.de
      link
      fedilink
      arrow-up
      19
      ·
      2年前

      Only to 2^54. The amount of integers representable by a long is more. But it can and does represent every int value correctly

      • parlaptie@feddit.de
        link
        fedilink
        arrow-up
        5
        ·
        2年前

        *long long, if we’re gonna be taking about C types. A long is commonly limited to 32 bits.

        • Aux@lemmy.world
          link
          fedilink
          arrow-up
          15
          ·
          2年前

          C is irrelevant because this post is about Java and in Java long is 64 bits.

        • voxel@sopuli.xyz
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          2年前

          you should never be using these types in c anyway, (u?)int(8/16/32/64)_t are way more sane

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.28K users / day
  • 4.5K users / week
  • 7.91K users / month
  • 19.7K users / 6 months
  • 197 local subscribers
  • 25.2K subscribers
  • 1.6K Posts
  • 58.8K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.7
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org