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?
In C++...
Other urls found in this thread:
floating-point-gui.de
docs.oracle.com
youtube.com
twitter.com
>what's the difference between single and double precision?
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.
:( 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
you all have autism
and your childhood love of your life is getting plowed at a party right now
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
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.