r/shittyprogramming • u/Leburgerking • Oct 04 '18
How much lift is produced by one float?
I want to run a java program that produces enough lift to get my case to levitate, and if I put enough floats in the program eventually the case will float too right??
147
Upvotes
76
u/UnspeakableEvil Oct 04 '18
Correct - be sure to include a long enough String that people can keep hold of it.
17
u/shruggie1401 Oct 04 '18
Floats are uncool. Nobody uses floats anymore. Use a double. They're twice as good. Watch out though if you suddenly lose power and it falls the case might break
10
u/ThaiJohnnyDepp Oct 04 '18
Normally you can't levitate from code alone, because the data itself (electrons) has weight. However, you can offset this by using the buoyant algorithm known as bubble sort.
8
u/Lambaline Oct 04 '18
No, float will produce buoyancy so you’ll have to put it on water.
5
u/SpecialEmily Oct 04 '18
1e-7 smoots per pico-fortnight.
2
u/[deleted] Oct 04 '18
About tree fiddy.
2
u/[deleted] Oct 04 '18
They float, they all float... and when you're down here with me, fat boy, you'll float too.
2
u/fleather2 Oct 10 '18
Make sure that there's no instance of your mom in the program though. I can promise you that you don't have enough memory to contain that many floats.