#9 - Fixed point arithmetic

  Рет қаралды 3,745

V. Hunter Adams

V. Hunter Adams

Күн бұрын

Пікірлер: 5
@varunnagpal2258
@varunnagpal2258 7 ай бұрын
35:24 Of course float2fix cant use left shift for multiplication since a is floating-point value. However fix2float can use right shift by 15 instead of dividing by 32768.0 since a is still an integer.
@douglasfanucchi
@douglasfanucchi 3 ай бұрын
I don't think you could divide like that because your bits would not be organized as a floating point should be. Separated by sign bit, mantissa and fractional numbers
@onurertek2466
@onurertek2466 2 жыл бұрын
Thank you for this video. It helps me a lot.
@varunnagpal2258
@varunnagpal2258 7 ай бұрын
27:30 I think it int2fix and fix2int macros may not be correct. Doesn't int2fix requires right shift by 15 (divide by 2^15) since you are shifting binary point to the left by 15 index positions ? Similarly fix2int would require left shift by 15 (multiply by 2^15) since you are shifting binary point towards right by 15 index positions ? For example int2fix(32768) should be 1 and fix2int(1) should be 32768
@douglasfanucchi
@douglasfanucchi 3 ай бұрын
Aparently your idea of conversion is "what this bits represents into the other data type" instead of "how to reach the same value representation on the other data type, which has different bits organization", and the last interpretation of conversion seems more correct
#10 - Boids, fixed point, and animation (reviewing and regrouping)
45:26
Fixed Point Arithmetic 1: Intro to Fixed Point
35:08
Creel
Рет қаралды 39 М.
Cool Parenting Gadget Against Mosquitos! 🦟👶
00:21
TheSoul Music Family
Рет қаралды 22 МЛН
MY HEIGHT vs MrBEAST CREW 🙈📏
00:22
Celine Dept
Рет қаралды 35 МЛН
Fixed Point Maths Explained - Retro Programming
17:31
NCOT Technology
Рет қаралды 3,2 М.
Raspberry Pi Pico Lecture 6: Protothreads and Fixed Point Arithmetic
51:14
Back To Basics! Fixed Point Numbers in C++
31:24
javidx9
Рет қаралды 61 М.
Floating Point Numbers (Part1: Fp vs Fixed) - Computerphile
15:41
Computerphile
Рет қаралды 159 М.
World's Fastest Camera Drone Vs F1 Car (ft. Max Verstappen)
12:05
Lecture 20. Fixed Point Numbers
13:39
Embedded Systems and Deep Learning
Рет қаралды 13 М.
Getting Fired On Your First Day
8:45
Daily Dose Of Internet
Рет қаралды 2,2 МЛН
6. Monte Carlo Simulation
50:05
MIT OpenCourseWare
Рет қаралды 2 МЛН
IEEE 754 Standard for Floating Point Binary Arithmetic
21:34
Computer Science Lessons
Рет қаралды 249 М.
How to Speak
1:03:43
MIT OpenCourseWare
Рет қаралды 19 МЛН