[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vr / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / asp / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / qst / sci / soc / sp / tg / toy / trv / tv / vp / wsg / wsr / x] [Settings] [Search] [Home]
Board
Settings Home
/g/ - Technology


Thread archived.
You cannot reply anymore.



File: floatingpoint.png (16 KB, 437x350)
16 KB
16 KB PNG
>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
>>
>>69755389
What is turnication?
>>
>>69755389
>turnication
fucking kek
remove yourself
>>
>>69755253
floats are zoomercore
https://www.youtube.com/watch?v=N05yYbUZMSQ
>>
File: jjj.png (399 KB, 513x454)
399 KB
399 KB PNG
>>69755504
>>
>>69755371
This.
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
>>
>>69755389
]
>>
File: 1516395939061.png (84 KB, 800x800)
84 KB
84 KB PNG
>>69755253
void main(void)
>>
>>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
>>
>>69756004
main returns an int, it isn't a void function - how is that irrelevant?
>>
>>69755371
fast vs not fast
>>
>>69755253
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?
>>
>>69756995
dude the program still runs just turn your brain off lmao
>>
>>69755371
Audio 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
>>
>>69757025
Floating point division is faster on modern hardware, though.
Not that it matters unless you're doing physics simulation.
>>
>>69757054
imagine 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 extension
long double actually results in 2.0, unlike double
>>
>>69759847
typedef longlong int
>>
>>69755253
USE POSITS
FUCK JEW FLOATS
>>
>>69755389
Yes anon, what is turnication? Can you explain it? Thought not brainlet.
>>
File: index.jpg (15 KB, 206x245)
15 KB
15 KB JPG
>>69755389
>turnication
Mock Turtle you are drunk, just go to sleep already
>>
>>69757149
>spending 3 years optimising my for loop
Thats a no from me sir.
>>
>>69757275
Never use floats to represent money, everybody knows that.
>>
>>69757025
>int is faster
*divides in your path*
nothin personnel kiddo
>>
>>69761406
Every division can be made into a multiplication.
>>
>>69756126
>inconsistent spacing
where? That code looks.wel.spaced to me.
>>
>>>/pol/
>>
>>69755253
Why not double or single precision?
>>
File: 1534076918292.png (162 KB, 565x592)
162 KB
162 KB PNG
>>69755533
Because base10 numbers are the spawn of the devil for processor logic. They just can't even.



Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.