CppCon 2015: John Farrier “Demystifying Floating Point"

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

CppCon

CppCon

Күн бұрын

Пікірлер: 31
@skilz8098
@skilz8098 6 жыл бұрын
The comment about stack overflow is fairly on point.
@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.
@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.
@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
@alexloktionoff6833
@alexloktionoff6833 Жыл бұрын
Can anybody provide a link to those 50 equations /*test-cases???*/ that must fork same on all IEEE754 machines?
@richardcavell
@richardcavell 6 жыл бұрын
Kudos for the Guru Meditation at 6:15
@soulstudiosmusic
@soulstudiosmusic 8 жыл бұрын
Perplexing subject for a good talk.
@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?
@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!
@RajeshKumar28sep
@RajeshKumar28sep 3 жыл бұрын
5:22, for 64 bits its should be 11 bit of exp
@Silvertestrun
@Silvertestrun Жыл бұрын
Thank you!
@georganatoly6646
@georganatoly6646 4 жыл бұрын
Very good talk. It wouldn't have occurred to me to group like exponentiation.
@acmdz
@acmdz 9 жыл бұрын
Oh, that's really helpful!
@victornoagbodji
@victornoagbodji 9 жыл бұрын
great talk : )
@CharIie83
@CharIie83 6 жыл бұрын
great talk
@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...
@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.
@MaherBaba
@MaherBaba 9 жыл бұрын
what u mean?
@Xeverous
@Xeverous 6 жыл бұрын
-ffast-math not mentioned?
@Courserasrikanthdrk
@Courserasrikanthdrk 8 жыл бұрын
ok,,,,,,,,,,,,,the talk has expressed very important maths topics :----------------------------------------------------------------------)
@dascandy
@dascandy 9 жыл бұрын
Your 64-bit floats occupy 65 bits.
@pranavjain3905
@pranavjain3905 7 жыл бұрын
the exponent register should have 11 exponent bits
@MaherBaba
@MaherBaba 9 жыл бұрын
you see everything don't you
@UpstreamNL
@UpstreamNL 6 жыл бұрын
Confusing talk. This guy is all over the place. Every slide in no way connects to the previous slide.
CppCon 2015: Scott Schurr “constexpr: Introduction”
1:04:07
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
CppCon 2015: Michael VanLoon “STL Algorithms in Action ”
1:01:52
CppCon 2015: Andrei Alexandrescu “Declarative Control Flow"
1:07:35
Why 0.1 + 0.2 === 0.30000000000000004: Implementing IEEE 754 in JS
16:43
Low Byte Productions
Рет қаралды 69 М.
CppCon 2015: Gwendolyn Hunt “Secure C++ Programming”
48:19
Simon Sinek's Advice Will Leave You SPEECHLESS 2.0 (MUST WATCH)
20:43
Alpha Leaders
Рет қаралды 2,7 МЛН
how floating point works
17:48
jan Misali
Рет қаралды 394 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН