ordo-one

ordo-one / FixedPoint

Public

High performance FixedPointDecimal

11
0
100% credibility
Found Mar 30, 2026 at 11 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Swift
AI Summary

A performant fixed-point decimal library providing exact 8-decimal-place arithmetic for financial calculations in Swift.

How It Works

1
💡 Discover precise money math

You're building an app for prices or finances and realize regular numbers cause tiny errors that add up over time.

2
🔍 Find the perfect tool

You come across this speedy way to handle money amounts exactly, like cents and fractions, without any mistakes.

3
📦 Add it easily

Simply include this tool in your app setup so it works everywhere you need exact calculations.

4
Calculate totals perfectly

Now add prices, multiply quantities, or divide shares – everything stays precise and super fast, even for big numbers.

5
📊 Format for display

Show amounts nicely formatted, like currency or percentages, ready for your users to see.

Flawless finance app

Your app now crunches money math accurately at lightning speed, building trust with perfect results every time.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 11 to 11 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is FixedPoint?

FixedPoint delivers high performance fixed point decimal arithmetic in Swift, fixing precision errors from Double (like inexact 0.1) and Foundation.Decimal's variable-precision slowdowns. It locks 8 fractional digits into a single Int64 for exact math on prices, quantities, and FX rates—zero heap allocations across add, mul, div, and conversions. Install via Swift Package Manager for Linux, Apple platforms, ARM/x86.

Why is it gaining traction?

Crushes Decimal: 359x faster adds, 168x divs, 900x comparisons per M4 benchmarks, all inlining-friendly with @frozen layout. Codable JSON as strings (ints/doubles decode too), SwiftUI animations, Charts plotting, atomic concurrency—banker's rounding unifies parsing/arithmetic/UI. Beats fixed point python or fixedpoint sol overhead in pure Swift speed.

Who should use this?

Swift finance devs pricing trades, crypto satoshis, or basis points without Double drift. iOS/macOS apps charting high performance fixed point data in SwiftUI. Backend services swapping slow Decimal for github high performance wins on high availability servers.

Verdict

Grab it for decimal-heavy apps craving speed—benchmarks sell it. Low 11 stars/1.0% credibility score means watch for edge cases, but 541 tests, fuzzing, and DocC docs build trust fast.

(187 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.