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
  • DreamBathrooms
  • magazineikmin
  • Youngstown
  • thenastyranch
  • GTA5RPClips
  • rosin
  • slotface
  • InstantRegret
  • ngwrru68w68
  • PowerRangers
  • kavyap
  • tsrsr
  • hgfsjryuu7
  • mdbf
  • tester
  • tacticalgear
  • khanakhh
  • cisconetworking
  • everett
  • Durango
  • ethstaker
  • vwfavf
  • cubers
  • normalnudes
  • osvaldo12
  • modclub
  • Leos
  • anitta
  • All magazines