Javascript Decimals are Broken? @DevLeonardo
Javascript Decimals are Broken?  @DevLeonardo
Uploaded August 2023 | Updated September 2026, 3 weeks ago
On javascript 0.1+0.2 is 0.30000000000000004

Sure, why not! Well.. it's floating point math :)

Computers can only natively store integers, so they need some way of representing decimal numbers. This representation is not perfectly accurate. This is why, more often than not, 0.1 + 0.2 != 0.3.

You can learn more here: https://0.30000000000000004.com

_______________________________
Hit like and subscribe for more content! :D
Join the Discord community! Here's the invite: discord.gg/bqwyEa6We6

You can also follow me on the other platforms:
Twitter: twitter.com/Balastrong
dev.to: dev.to/balastrong
Home: https://leonardomontini.dev/
TikTok: tiktok.com/@balastrong
GitHub: github.com/Balastrong
Instagram: instagram.com/devbalastrong

#javascript #js #programming
Javascript Decimals are Broken?Learning Web Development through Open Source - OSDay25TanStack Table: Backend Pagination, Filter & Sort with TanStack Query + TanStack RouterNEW GitHub Copilot Workspace DemoTanStack Start Supabase ClientDebug a React app with Visual Studio CodeNextjs actions in 0 milliseconds[GitHub UPDATE] Comment entire Files on Pull RequestsWarp or Fig? Enhancing your terminal experienceI vibe coded an online visitors counter for my blogTanStack Router: Code Based RoutingGet AI Autocomplete on Terminal - fig
Dev Leonardo |

Javascript Decimals are Broken?

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER