this post was submitted on 12 Feb 2024
754 points (98.3% liked)

Programmer Humor

32453 readers
281 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
[–] 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.