Fixed-point math is better than floating point (sometimes) @LowByteProductions
Fixed-point math is better than floating point (sometimes)  @LowByteProductions
Uploaded June 2024 | Updated September 2026, 2 weeks ago
In this video, we're learning about fixed-point: A different method for doing non-integer arithmetic without floats!
Floating point is a ubiquitous standard that works everywhere, but it needs specialised hardware to have any chance of running fast. This can make calculations on low-powered microcontrollers extremely expensive. Fixed-point solves, giving us a method for cheaply computing fractional results with flexible precision!

00:00:00 Intro
00:03:46 Floating point vs fixed point
00:10:07 Fixed point bit representation
00:17:10 Code: Fixed point defines
00:21:30 Getting to the integer and fractional parts
00:24:24 Sign function and representing ints in fixed point
00:32:14 Converting to and from floating point
00:36:23 Addition and subtraction
00:38:27 Multiplication
00:42:20 Division
00:48:52 Rounding operations
00:50:14 Absolute value
00:54:50 Floor
00:58:57 Getting the fractional part
01:02:38 Ceiling
01:05:37 Round
01:14:14 Motivating example: Analog to digital converter readings
01:30:10 Next time: Sines and cosines

=[ 🔗 Links 🔗 ]=

⭐️ Become a patron and get bonus videos! patreon.com/lowleveljavascript
🗣 Discord: discord.gg/FPWaVgk
💻 Github Repo: github.com/lowbyteproductions/fixed-point-math
Fixed-point math is better than floating point (sometimes)The mechanics of VIRTUAL MEMORY //Source Dive// 005Spinning Persistence of Vision[stream] USB: Reverse Engineering and Writing Driversgateware-ts basics: Digital design for FPGA with TypeScriptPWM and Timers :: Bare Metal Programming Series 3The Last Instructions!: RISC-V ep.115 Stage Pipeline: RISC-V Processor In TS (part 3)What is the Stack and why do we need it? (16-Bit VM in JavaScript 003)Understanding Assembly Generated From C :: Bare Metal Programming Series 4.1Contextual Parsing With The Chain Method  [Parser Combinators From Scratch] Episode 4Exceptional Trap Handling: RISC-V ep.10
Low Byte Productions |

Fixed-point math is better than floating point (sometimes)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER