@serebit@floss.social titelbild
@serebit@floss.social avatar

serebit

@serebit@floss.social

:archlinux: @archlinux package maintainer.
:budgie: @buddiesofbudgie developer.

💥 Known miscreant.
🖥️ Career "software engineer".
🎮 Good at Deep Rock Galactic, bad at Mario.
🎵 Dancin' with the devil sweatin' gasoline.

Commonly seen with @TheSmollestofBeans.

Dieses Profil is von einem föderierten Server und möglicherweise unvollständig. Auf der Original-Instanz anzeigen

karolherbst , an Random Englisch
@karolherbst@chaos.social avatar

seriously. I don't post half the things I enter here...

serebit ,
@serebit@floss.social avatar

@karolherbst give in to the temptation

shitpost

you know you want to

serebit ,
@serebit@floss.social avatar

@karolherbst Ah, yeah. Already too much negativity online as it is... kudos for having the restraint to know when not to post, genuinely.

karolherbst , an Random Englisch
@karolherbst@chaos.social avatar

The answer to the question of "do I use a floating point arithmetic for currency" was, is and always will be: No

Please just don't do this to yourself.

serebit ,
@serebit@floss.social avatar

@karolherbst Is it better to do operations with a fractional field (e.g. $128.64 becomes 128 in one var and 64 in the other), or just do everything in one field (e.g. $128.64 becomes 12864 in a single var)?

serebit ,
@serebit@floss.social avatar

@karolherbst Sure, but in e.g. C, one would need to implement that themselves if they were unable to use any external libraries. I'm just curious about the upsides and downsides to each approach.

karolherbst , an Random Englisch
@karolherbst@chaos.social avatar

I wonder if #rusticl is mature enough to be enabled by default on a few drivers these days.

I'm still a bit reluctant, but maybe it's fine?

serebit ,
@serebit@floss.social avatar

@karolherbst yes please

  • Alle
  • Abonniert
  • Moderiert
  • Favoriten
  • random
  • haupteingang
  • Alle Magazine