CppCon 2015: John Farrier “Demystifying Floating Point"

  Рет қаралды 31,738

CppCon

CppCon

Күн бұрын

Пікірлер: 31
@skilz8098
@skilz8098 6 жыл бұрын
The comment about stack overflow is fairly on point.
@dascandy
@dascandy 9 жыл бұрын
There are the same amount of numbers between 0.5 and 0.25, between 0.25 and 0.125, between 0.125 and 0.0625, ... so if you count the number of floats between 0 and 1, that's a lot more than between 1 and 2. In fact, there are 255 "groups" of numbers, each from N to N*2, each having 8388608 numbers.
@justcurious1940
@justcurious1940 2 жыл бұрын
u are totally correct but i just wanna say that we only have 254 groups for normal values and 1 group for NANs and 1 group for subnormals
@hanyouchu4661
@hanyouchu4661 8 жыл бұрын
The difference between float and double for the Kahan version of triangle area is due to input conversion from decimal to binary. If you cast the float input to double, the results are almost identical.
@alexloktionoff6833
@alexloktionoff6833 Жыл бұрын
oh yea, don't forget to put f or d suffixes to all constants in the code to avoid double rounding!
@richardcavell
@richardcavell 6 жыл бұрын
Kudos for the Guru Meditation at 6:15
@soulstudiosmusic
@soulstudiosmusic 8 жыл бұрын
Perplexing subject for a good talk.
@alexloktionoff6833
@alexloktionoff6833 Жыл бұрын
Can anybody provide a link to those 50 equations /*test-cases???*/ that must fork same on all IEEE754 machines?
@enhex
@enhex 9 жыл бұрын
Why 0.0 to 0.1 have more precision? Is it because every floating point number is unique, and there's a lot of overlaps up to 2^23?
@ehsanamini8501
@ehsanamini8501 2 жыл бұрын
@4:31 and @8:10 why does -1^0 compute to zero? Shouldn't it be 1? Is it a typo or am I missing something?
@ehsanamini8501
@ehsanamini8501 2 жыл бұрын
Oh I get it now. 1 represents a negative number, 0 a positive number.
@Silvertestrun
@Silvertestrun 11 ай бұрын
Thank you!
@janasandeep
@janasandeep 9 жыл бұрын
At 11:08 (slide 24), the binary representation of 1.0e-37 shown here is different from what I got using visual studio: EA1C0802 (little endian). Why so? The latter does not seem to be a denormalized number.
@soulstudiosmusic
@soulstudiosmusic 8 жыл бұрын
+sandeep jana See section where he mentions the three different types of floating point numbers available in VS.
@Calm_Energy
@Calm_Energy 5 жыл бұрын
Units in last place = ulps. This is a measurement I've never seen before. Some compilers can control how rounding works via options.
@alexloktionoff6833
@alexloktionoff6833 Жыл бұрын
but not all h/w follows bit exact rounding. +/-.5ulp what we can rely...
@georganatoly6646
@georganatoly6646 4 жыл бұрын
Very good talk. It wouldn't have occurred to me to group like exponentiation.
@CharIie83
@CharIie83 6 жыл бұрын
great talk
@RajeshKumar28sep
@RajeshKumar28sep 3 жыл бұрын
5:22, for 64 bits its should be 11 bit of exp
@acmdz
@acmdz 9 жыл бұрын
Oh, that's really helpful!
@victornoagbodji
@victornoagbodji 9 жыл бұрын
great talk : )
@Courserasrikanthdrk
@Courserasrikanthdrk 7 жыл бұрын
ok,,,,,,,,,,,,,the talk has expressed very important maths topics :----------------------------------------------------------------------)
@MaherBaba
@MaherBaba 9 жыл бұрын
you see everything don't you
@MaherBaba
@MaherBaba 9 жыл бұрын
what u mean?
@dascandy
@dascandy 9 жыл бұрын
Your 64-bit floats occupy 65 bits.
@pranavjain3905
@pranavjain3905 6 жыл бұрын
the exponent register should have 11 exponent bits
@Xeverous
@Xeverous 6 жыл бұрын
-ffast-math not mentioned?
@andik70
@andik70 8 жыл бұрын
16:56 'on the CPU math is done exactly and then rounded to give it back to you' did you really say that? Do you really mean that?
@richardcavell
@richardcavell 5 жыл бұрын
Theoretically, that’s what happens. Think conceptually.
@UpstreamNL
@UpstreamNL 6 жыл бұрын
Confusing talk. This guy is all over the place. Every slide in no way connects to the previous slide.
CppCon 2015: Andrei Alexandrescu “Declarative Control Flow"
1:07:35
How many people are in the changing room? #devil #lilith #funny #shorts
00:39
Как Я Брата ОБМАНУЛ (смешное видео, прикол, юмор, поржать)
00:59
А я думаю что за звук такой знакомый? 😂😂😂
00:15
Денис Кукояка
Рет қаралды 5 МЛН
Чистка воды совком от денег
00:32
FD Vasya
Рет қаралды 4,4 МЛН
#Audio  - बेवफा भईलु हो ! Singer "#Pravesh Pritam का दर्द भरा गाना | bhojpuri Sad song 2024
8:39
𝐇𝐚𝐫𝐢𝐤𝐞𝐬𝐡 𝐏𝐫𝐢𝐭𝐚𝐦 𝐎𝐟𝐟𝐢𝐜𝐢𝐚𝐥
Рет қаралды 325
Floating Point Numbers (Part1: Fp vs Fixed) - Computerphile
15:41
Computerphile
Рет қаралды 160 М.
CppCon 2016: Jason Turner “Practical Performance Practices"
1:00:29
CppCon 2015: Gwendolyn Hunt “Secure C++ Programming”
48:19
how floating point works
17:48
jan Misali
Рет қаралды 388 М.
How many people are in the changing room? #devil #lilith #funny #shorts
00:39