menu
CODER
LEGION
Apple Login
Facebook Login
GitHub Login
Google Login
X Login
Login
Sign Up
search
Log In
account_circle
Welcome to
Coder Legion
Connect with 6,041 amazing developers
Email or Username
Password
Forgot your password?
Remember
Log In
Don't have an account?
Sign up
OR
Continue with Apple
Continue with Facebook
Continue with GitHub
Continue with Google
Continue with X
New Post
Home
Tags
Launches
Videos
Dev Stories
Discussions
Series
Groups
Jobs
Developers
Users
More
Posts by baichaowei
@baichaowei
Baichao Wei
Working on Waffo Pancake, a merchant of record for developers selling software a...
Joined November 2026
121
Points
•
2
Badges
•
0
Connections
•
0
Followers
•
3
Following
Profile
Stats
Wall
Posts
Badges
Posts by baichaowei
Posts
Comments
Reviews
All
Articles
Dev Stories
Discussions
Launches
Tutorials
Videos
baichaowei
•
1 hour
•
in
Articles
•
1 min read
Store Money as Integers: Three Bugs I Keep Seeing in Billing Code
Most billing bugs I have debugged were not in the payment provider. They were in how the app stored and calculated amounts. Three patterns come up again and again. 1. Floats for amounts 0.1 + 0.2 === 0.3 // false A float cannot represent most dec...
programming
webdev
javascript
database
0
Reactions
0
Comments
content_copy
Share on Facebook
Share on X
Share on Reddit
Share on LinkedIn
Share on Pinterest
Share on HackerNews
Load more
chevron_left