Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ DeciMojo provides an arbitrary-precision decimal and integer mathematics library
The core types are:

- A base-10 arbitrary-precision signed integer type (`BigInt`) and a base-10 arbitrary-precision unsigned integer type (`BigUInt`) supporting unlimited digits[^integer]. It features comprehensive arithmetic operations, comparison functions, and supports extremely large integer calculations efficiently.
- An arbitrary-precision decimal implementation `BigDecimal` allowing for calculations with unlimited digits and decimal places[^arbitrary].
- An arbitrary-precision decimal implementation `BigDecimal` allowing for calculations with unlimited digits and decimal places[^arbitrary]. It provides a complete set of arithmetic operations, comparisons, and mathematical functions like logarithms, exponentiation, roots, trigonometric functions, etc. It also supports rounding modes and conversions to/from built-in types.
- A 128-bit fixed-point decimal implementation (`Decimal`) supporting up to 29 significant digits with a maximum of 28 decimal places[^fixed]. It features a complete set of mathematical functions including logarithms, exponentiation, roots, etc.

This repository includes [TOMLMojo](https://github.com/forfudan/decimojo/tree/main/src/tomlmojo), a lightweight TOML parser in pure Mojo. It parses configuration files and test data, supporting basic types, arrays, and nested tables. While created for DeciMojo's testing framework, it offers general-purpose structured data parsing with a clean, simple API.
Expand Down
4 changes: 2 additions & 2 deletions benches/biguint/bench.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This is the BigUInt Benchmarks
=========================================
add: Add
mul: Multiply
trunc: Truncate divide (//)
div: Truncate divide (//)
fromstr: From string
all: Run all benchmarks
q: Exit
Expand All @@ -24,7 +24,7 @@ q: Exit
bench_add()
elif command == "mul":
bench_multiply()
elif command == "trunc":
elif command == "div":
bench_truncate_divide()
elif command == "fromstr":
bench_from_string()
Expand Down
Loading