Campfyre
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Trev13@programming.dev to Programming@programming.dev · 3 days ago

Big Decimals: Stop Using Floats or Cents for Money

medium.com

external-link
message-square
53
fedilink
84
external-link

Big Decimals: Stop Using Floats or Cents for Money

medium.com

Trev13@programming.dev to Programming@programming.dev · 3 days ago
message-square
53
fedilink
Most people dealing with money in software hit the same annoying problem: the need to store and compute money values that were exact…
  • Mark with a Z@suppo.fi
    link
    fedilink
    arrow-up
    28
    ·
    3 days ago

    Stop Using Floats

    no shit

    or Cents

    huh…?

    That was a good point.

    • underscores@lemmy.zip
      link
      fedilink
      English
      arrow-up
      5
      ·
      edit-2
      2 days ago

      I think maybe they meant using integers for cents

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: [email protected]

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 [email protected]



Visibility: Public
globe

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

  • 115 users / day
  • 387 users / week
  • 1.6K users / month
  • 7.61K users / 6 months
  • 1 local subscriber
  • 22.9K subscribers
  • 2.45K Posts
  • 36.7K Comments
  • Modlog
  • mods:
  • snowe@programming.dev
  • Ategon@programming.dev
  • MaungaHikoi@lemmy.nz
  • UlrikHD@programming.dev
  • BE: 0.19.7
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org