LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pi Approximation

I just saw a funny meme about a fraction that approximated PI to 2600 digits. That got me thinking of trying to find some, and this was my result!

Yamaeda_0-1780070480405.png

22/7 (the real PI day) is surprisingly good at such a simple fraction. 355/113 is a really good approximation and you need to get to 99733/31746 to get the best 5 digit one. With the last one it's correct to 10 digits!

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 1 of 3
(50 Views)

What we really need is a TAU day...

More PI for everyone!

0 Kudos
Message 2 of 3
(42 Views)

Cool!

 

Hey, this is 2026, so why not use a map instead of variant attributes?

On a side note, you could gain about 10-20% by just replacing the format into decimal string with a typecast. 😄

One flaw is that the third and fourth item have the same ratio

0 Kudos
Message 3 of 3
(11 Views)