KDE Social
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Trev13@programming.dev to Programming@programming.dev · 7 months ago

Big Decimals: Stop Using Floats or Cents for Money

medium.com

external-link
message-square
52
link
fedilink
98
external-link

Big Decimals: Stop Using Floats or Cents for Money

medium.com

Trev13@programming.dev to Programming@programming.dev · 7 months ago
message-square
52
link
fedilink
  • LowtierComputer@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    7 months ago

    What happens?

    • ZILtoid1991@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      7 months ago

      The physics starts to glitch out, or at least used to, until it got upgraded to doubles. I also use doubles for my game engine, as well as (optionally) limiting pixel-precise things within int.max and int.min.

      • LowtierComputer@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        7 months ago

        Does the world repeat after a set point?

        • ZILtoid1991@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          7 months ago

          Technically yes, and with tile layers, you can even set them repeating on a shorter area.

    • Treczoks@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      7 months ago

      All kinds of weird things. There is a video explaining the details, and you’ve got to be far, far out.

      • LowtierComputer@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        7 months ago

        I’ll have to look it up after work. Sounds interesting.

Programming@programming.dev

programming@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: !programming@programming.dev

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



Visibility: Public
globe

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

  • 179 users / day
  • 1.11K users / week
  • 3.24K users / month
  • 7.29K users / 6 months
  • 13 local subscribers
  • 26.5K subscribers
  • 3.08K Posts
  • 44.3K Comments
  • Modlog
  • mods:
  • snowe@programming.dev
  • Ategon@programming.dev
  • UlrikHD@programming.dev
  • bugsmith@programming.dev
  • Spyro@programming.dev
  • BE: 0.19.13
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org