#copenhagenjs

2025-04-14

I recently had a talk at CopenhagenJS to STOP using floating point numbers for math and money calculations. Today I became aware of PHP's `str_decrement` function which does "math" with strings.

It's like PHP heard me and went: HOLD MY BEER! 🍺 php.net/manual/en/function.str

#PHP #math #wat #programming #copenhagenjs

screenshot of the php docs for str_decrement

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst