In C++...

In C++, what the actual hellfire is the difference between classifying my decimals as floats or doubles when in reality both items give me the exact same decimal in the end?

Attached: 1543708903253.png (932x1080, 726K)

Other urls found in this thread:

floating-point-gui.de/
docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html
youtube.com/watch?v=N05yYbUZMSQ
twitter.com/SFWRedditImages

>what's the difference between single and double precision?

Attached: vO7lRZ7.png (621x702, 56K)

floating-point-gui.de/
docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html

Attached: 1544859668224.png (936x772, 28K)

It's there to make you go "hm, maybe I should be programming in a better language, 2bad about your hair bjarne bye"

(((((((((((((goldberg)))))))))))))

decimals are basically integers shifted n number of base-10 digits into the decimal places. floats are basically the same, but done in binary instead of base-10.

said the grey haired loli

oh wait youre just retarded

it's true, floating point is completely jewish, which is why it's substandard and full of quirks that make it shit.

In a more just universe without kikes, we'd all have Posit based hardware by now.

youtube.com/watch?v=N05yYbUZMSQ

Attached: aniemgirlsmugglasses.gif (128x128, 152K)

:( i want the alternate timeline, miss smug anime girl with glasses

kek

I wanna suck Hideri chans tiny girl penis while she sniffs my masculine ballsack

Attached: 368D4C5F-A0D5-4F0E-B0ED-11A86F162CD5.jpg (1920x1080, 715K)

you all have autism

and your childhood love of your life is getting plowed at a party right now

Attached: images (7).jpg (521x589, 32K)

It's more a historic thing. Just use doubles everywhere, it's 2019 and they are as fast or faster than float.

...it's true....

kek what a genius idea. Why even use float in the first place anymore

Attached: 049EF265-290E-4D59-83C9-D055263E6BCC.jpg (995x1519, 128K)

My dick is now on diamonds

Hideri will do that.

gay and retardpilled

>floats are the same as doubles
>give me the same exact decimal in the end.

Except the fucking don't. Its like you have no idea how computers work or something.

explain why using doubles all the time is a bad thing

Because they also use double the space.

>not running a strong computer and forcing your clients to have strong computers

Back to your containment board, underage

Regardless of how "strong" a computer is you're still wasting cache space you fucking imbecile.

dumb weeb

In the unlikely chance that you're being serious, or for any uninformed onlooker, floats/single-precision still has its uses.

GPUs are often built to work with single-precision matrices, for shaders/deep learning etc, along with image/video compression and the like. Basically anytime you need to meet really tight performance or space requirements.