Public
Like
untitled-3491
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.
A web page explaining the extension of binary SI prefixes to fractional values.
frontend/
- Contains the main web pageindex.html
- Main HTML page with the explanationstyle.css
- Custom styling
backend/
- Simple HTTP serverindex.ts
- Hono server to serve the frontend
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.
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
- 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
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.