• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
j

j

untitled-3491

Public
Like
untitled-3491
Home
Code
4
backend
1
frontend
2
README.md
main.ts
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
9/24/2025
Viewing readonly version of main branch: v7
View latest version
README.md

Binary SI Prefixes Extension

A web page explaining the extension of binary SI prefixes to fractional values.

Project Structure

  • frontend/ - Contains the main web page
    • index.html - Main HTML page with the explanation
    • style.css - Custom styling
  • backend/ - Simple HTTP server
    • index.ts - Hono server to serve the frontend

Concept

This project explores extending the binary SI prefixes (kibi-, mebi-, gibi-, etc.) which are typically used for values ≥ 1, to also include fractional prefixes for values < 1. This creates a complete binary prefix system analogous to the decimal SI prefixes.

Binary Prefixes

Standard (≥ 1):

  • kibi (Ki) = 2^10 = 1,024
  • mebi (Mi) = 2^20 = 1,048,576
  • gibi (Gi) = 2^30 = 1,073,741,824
  • tebi (Ti) = 2^40 = 1,099,511,627,776

Extended (< 1):

  • milli-binary (mi) = 2^-10 ≈ 0.0009765625
  • micro-binary (μi) = 2^-20 ≈ 0.00000095367
  • nano-binary (ni) = 2^-30 ≈ 0.00000000093132
  • pico-binary (pi) = 2^-40 ≈ 0.00000000000090949

Features

  • Interactive Calculator: Enter any power of 2 to see the corresponding prefix and value
  • Comprehensive Tables: Compare standard and extended binary prefixes
  • Practical Applications: Examples of where fractional binary prefixes might be useful
  • Decimal Comparison: See how binary prefixes relate to decimal SI prefixes
  • Responsive Design: Works on desktop and mobile devices
  • API Endpoint: /api/calculate/{power} for programmatic access

Usage

Visit the web page to explore the concept of extended binary prefixes. Use the interactive calculator to experiment with different powers of 2 and see how they would be represented in this extended system.

FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.