CommunityNews
Integer Math in JavaScript
Integer math in JavaScript | James Darpinian.
You may know that all numbers in JavaScript are 64 bit double-precision floating point values. This is sometimes convenient and it works pretty well as a default for novice programmers, who are often confused by integer math, and rightfully so when 1 / 2 = 0. Unfortunately, it makes things slow. Doubles take a lot of memory and floating point math is slower than integer math on CPUs. It’s also inconvenient if you want to port existing code to JavaScript, because existing code usually expects to use integer math.
Read in full here:
This thread was posted by one of our members via one of our news source trackers.
Popular Frontend topics
Building LightOS with React Native.
The Light Phone 2 is a minimalist cellphone that was named one of Time Magazine’s best inventions of...
New
Hi all,
With excitement we’re sharing today that Vue.js is Wikimedia
Foundation’s official choice for adoption as future JavaScript
fr...
New
Etsy’s Journey to TypeScript.
Over the past few years, Etsy’s Web Platform team has spent a lot of time bringing our frontend code up to...
New
How the TypeScript Compiler Compiles - understanding the compiler internal.
A systems-level look at the TypeScript compiler. How it conv...
New
Fixing a performance problem in Elm using Html.Lazy.
How you can increase the performance of your Elm application using Html.Lazy, and w...
New
pzuraq | Four Eras of JavaScript Frameworks.
A blog about (mostly) computery things
New
Effective TypeScript › What’s TypeScript compiling? Use a treemap to find out…
Has TypeScript gotten slow for you? Run this one magic co...
New
GitHub - astrodon/astrodon: Make Desktop apps with Deno :sauropod:.
Make Desktop apps with Deno :sauropod:. Contribute to astrodon/astro...
New
All branches will diverge from the stem: from Elm to Derw.
Forgive the fancy title, but I felt it fit this month’s Derw improvements wel...
New
New
Other popular topics
A thread that every forum needs!
Simply post a link to a track on YouTube (or SoundCloud or Vimeo amongst others!) on a separate line an...
New
This looks like a stunning keycap set :orange_heart:
A LEGENDARY KEYBOARD LIVES ON
When you bought an Apple Macintosh computer in the e...
New
Hello everyone! This thread is to tell you about what authors from The Pragmatic Bookshelf are writing on Medium.
New
Create efficient, elegant software tests in pytest, Python's most powerful testing framework.
Brian Okken @brianokken
Edited by Kat...
New
Biggest jackpot ever apparently! :upside_down_face:
I don’t (usually) gamble/play the lottery, but working on a program to predict the...
New
Author Spotlight:
VM Brasseur
@vmbrasseur
We have a treat for you today! We turn the spotlight onto Open Source as we sit down with V...
New
I have always used antique keyboards like Cherry MX 1800 or Cherry MX 8100 and almost always have modified the switches in some way, like...
New
Explore the power of Ash Framework by modeling and building the domain for a real-world web application.
Rebecca Le @sevenseacat and ...
New
Node.js v22.14.0 has been released.
Link: Release 2025-02-11, Version 22.14.0 'Jod' (LTS), @aduh95 · nodejs/node · GitHub
New
Hair Salon Games for Girls Fun
Girls Hair Saloon game is mainly developed for kids. This game allows users to select virtual avatars to ...
New
Categories:
Sub Categories:
Popular Portals
- /elixir
- /rust
- /ruby
- /wasm
- /erlang
- /phoenix
- /keyboards
- /python
- /js
- /rails
- /security
- /go
- /swift
- /vim
- /clojure
- /emacs
- /haskell
- /java
- /svelte
- /onivim
- /typescript
- /kotlin
- /c-plus-plus
- /crystal
- /tailwind
- /react
- /gleam
- /ocaml
- /flutter
- /elm
- /vscode
- /ash
- /html
- /opensuse
- /centos
- /zig
- /deepseek
- /php
- /scala
- /react-native
- /sublime-text
- /lisp
- /textmate
- /debian
- /nixos
- /agda
- /kubuntu
- /django
- /arch-linux
- /deno
- /nodejs
- /ubuntu
- /revery
- /spring
- /manjaro
- /diversity
- /lua
- /julia
- /markdown
- /slackware








