alda, (edited )
@alda@topspicy.social avatar

PHP double precision floats for financial calculations — yes or no?

cabbey,
@cabbey@phpc.social avatar

@alda I kinda want to know where the dozen or so folks that voted yes work, so I know where to avoid doing business.

alda,
@alda@topspicy.social avatar

@cabbey I sure as hell hope you realise that Excel and other spreadsheets use double precision floats for financial calculations — which means that either we're all fucked or that using double precision floats for this purpose is just fine.

weddige,
@weddige@gruene.social avatar

@alda what's the alternative? Teaching programmers about numerical stability?

alda,
@alda@topspicy.social avatar

@weddige requiring a library/extension that is not installed by default in a WordPress plugin that's not just for internal use.

weddige,
@weddige@gruene.social avatar

@alda Would dynamically using either Decimal (if available) or double (as a fallback) be an option?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • kavyap
  • thenastyranch
  • GTA5RPClips
  • tester
  • InstantRegret
  • DreamBathrooms
  • ngwrru68w68
  • magazineikmin
  • everett
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • cisconetworking
  • megavids
  • khanakhh
  • normalnudes
  • osvaldo12
  • cubers
  • tacticalgear
  • Durango
  • ethstaker
  • modclub
  • anitta
  • provamag3
  • Leos
  • JUstTest
  • lostlight
  • All magazines