https://github.com/spejamchr/chbsrs
Convert between numerical bases (support for bases >36 & floating-point bases)
https://github.com/spejamchr/chbsrs
base-conversion leptos number-base-converter
Last synced: 9 months ago
JSON representation
Convert between numerical bases (support for bases >36 & floating-point bases)
- Host: GitHub
- URL: https://github.com/spejamchr/chbsrs
- Owner: spejamchr
- License: mit
- Created: 2024-03-13T06:59:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-04T06:49:09.000Z (over 1 year ago)
- Last Synced: 2025-07-27T08:51:47.874Z (11 months ago)
- Topics: base-conversion, leptos, number-base-converter
- Language: Rust
- Homepage: https://spejamchr.github.io/chbsrs/
- Size: 286 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ChangeBase
Convert numbers from one [positional notation](https://en.wikipedia.org/wiki/Positional_notation) to
another. Either base can be a
[non-integer](https://en.wikipedia.org/wiki/Non-integer_base_of_numeration), such as `pi` or `e`.
Built with [Leptos](https://github.com/leptos-rs/leptos).
## Why?
I read that [base-`e`](https://en.wikipedia.org/wiki/Non-integer_base_of_numeration#Base_e) has the
lowest [radix economy](https://en.wikipedia.org/wiki/Radix_economy#e_has_the_lowest_radix_economy),
and I wanted to see what numbers would look like in base-`e`. Also, I wanted to try out Leptos.
## Running Locally
This site uses Rust `nightly` and requires that you've installed the `wasm` compilation target for
your toolchain. See [getting started with
Leptos](https://book.leptos.dev/getting_started/index.html).
If you don't have Rust nightly, you can install it with
```sh
rustup toolchain install nightly --allow-downgrade
```
You can add the `wasm` compilation target to rust using
```sh
rustup target add wasm32-unknown-unknown
```
Then clone the project
```sh
git clone https://github.com/spejamchr/chbsrs.git
```
## Developing
To run the app use [Trunk](https://github.com/trunk-rs/trunk):
```sh
trunk serve --port 3000 --open
```
## Deploying
All pushes to `main` are automatically deployed by GitHub Actions.