this post was submitted on 12 Feb 2024
763 points (98.4% liked)

Programmer Humor

32588 readers
1577 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Omega_Haxors@lemmy.ml 11 points 9 months ago* (last edited 9 months ago) (2 children)

Openoffice does this too, and the worst part is that it will take something and interpret it as a date, but then you force it to interpret it as a number, instead of using the number you typed it will use the index number of the date which is a completely different and useless value.

In short, it takes the number you put in and converts it into a date against your will, and you can't change it back. It would be like if you typed in "sunshine" and it interpreted that as the temperature of a sunbeam and put that in the cell instead of the fucking thing you typed. So annoying!!

Another minor gripe is how their Pi() uses enough digits that it lands on a 5 and rounds up, which breaks all sorts of sine math. If they had rounded down or added/removed a digit of pi that wouldn't be an issue. I have to intentionally add error to my functions just so they work. On the up side I was able to provide mathematical proof that the human tendency to round up at 5 is at odds with the real world. It makes more sense to round down, though I always just add/remove a decimal point so I don't have add arbitrary information to the system by always assuming a roundup or rounddown. If I'm forced to end at a 5, I round down, which is at odds with how people do it but it breaks less.

EDIT: come to think of it, it makes a lot of sense for 5 to be a round-down situation. If a particle has just enough energy to jump to the next state but no extra, it would be far more likely to stay in its current energy state than it would be to expend energy to make that jump. Even an infinitesimally small increase over the exact amount required to make a jump would give it that necessary kick to actually make the jump.

[–] Ephera@lemmy.ml 15 points 9 months ago (1 children)

I don't know, whether these things have been fixed by now, but you should mind that OpenOffice's development has been basically dead since 2010. All the core devs moved over to LibreOffice, basically because Oracle had bought Sun Microsystems, who previously held the "OpenOffice" brand. You really want to be using LibreOffice these days.

[–] Omega_Haxors@lemmy.ml 8 points 9 months ago* (last edited 9 months ago)

That explains why I haven't got a response from them in over three years.

EDIT: I've downloaded LibreOffice. Their Pi() uses 3.14159265358979 which is an awesome number to end it on.

[–] bstix@feddit.dk 1 points 9 months ago* (last edited 9 months ago) (1 children)

Can't you just type in the digits of the Pi that you want to use in some cell and then refer to that cell instead of using the default Pi?

5 is mathematically a "round-up" number. If you want your numbers to behave differently I think you'd be better off using a different function.

[–] Omega_Haxors@lemmy.ml 1 points 9 months ago* (last edited 9 months ago) (1 children)

Five isn't mathematically a round-up number, we just arbitrarily decided to round up because numbers were used in merchant contexts where obviously you want to get people to pay more for their stuff than less. As for solutions I just introduce a tiny error because it's genuinely less effort than constantly referencing a cell and locking it so that it won't run away if you drag it around. It's a very easy to forget a lock.

[–] bstix@feddit.dk 1 points 9 months ago (1 children)

Name the cell "myPi" and use that instead of the Pi function.

[–] Omega_Haxors@lemmy.ml 1 points 9 months ago

That's a pretty high-q move. I've moved to LibreOffice which does Pi properly, but i'll keep that in mind next time I need a static data reference.