>he uses (((floating point)))And i thought jews were good at math
why use floats when you can just use large integers and divide by 10 ^ number of decimals to get the true value?
>>69755371>what is turnication
>>69755389What is turnication?
>>69755389>turnicationfucking kekremove yourself
>>69755253floats are zoomercorehttps://www.youtube.com/watch?v=N05yYbUZMSQ
>>69755371This.Why we even need FLOPS? Just calculate everything with big integers.Making things unecessary complex is Jewish thing.And, I guess, FLOPS works great to sell product.I bet, floating point operations were invented by a person with jewish DNA
>>69755877>nitpicking about irrelevant shit
Understanding and bring confident with floating point is the real brainlet filter in programming. IEEE floating point is not very difficult to understand. Also>void main>program does not print newline at end>inconsistent spacing
shoulda used ilm's based HALF instead
>>69756004main returns an int, it isn't a void function - how is that irrelevant?
>>69755371fast vs not fast
>>69755253I never understood why people use floating points for everything, int is faster and works just as well, what is the point of 0.1f when 1 is just as good?
>>69756995dude the program still runs just turn your brain off lmao
>>69755371Audio devices do this for legacy reasons and it's dumb as shit.In most signals you want better resolution at low amplitudes, which is essentially provided by floating point representation.
or as i like to call them, lossy compressed numbers
>>69757025Floating point division is faster on modern hardware, though.Not that it matters unless you're doing physics simulation.
>>69757054imagine not wanting to write programs correctly.
>>69757025>I never understood why people use floating points for everything, int is faster and works just as well, what is the point of 0.1f when 1 is just as good?Retards use floating point values to say .5 dollars when they could use an integer to say 50 cents, that's true.But floating point values are very useful when you have to cover high ranges and go close to zero, which typically happens when you do many (non-linear) numerical problems in physics, etc.
>>69755253>float>not using double
runtime error: signed integer overflow: 320000000 * 40000000 cannot be represented in type 'int'
>>69757861>not using the 80-bit float Intel extensionlong double actually results in 2.0, unlike double
>>69759847typedef longlong int
typedef longlong int
>>69755253USE POSITSFUCK JEW FLOATS
>>69755389Yes anon, what is turnication? Can you explain it? Thought not brainlet.
>>69755389>turnicationMock Turtle you are drunk, just go to sleep already
>>69757149>spending 3 years optimising my for loopThats a no from me sir.
>>69757275Never use floats to represent money, everybody knows that.
>>69757025>int is faster*divides in your path*nothin personnel kiddo
>>69761406Every division can be made into a multiplication.
>>69756126>inconsistent spacingwhere? That code looks.wel.spaced to me.
>>69755253Why not double or single precision?
>>69755533Because base10 numbers are the spawn of the devil for processor logic. They just can't even.