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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ magic.lock
# Temporary files
tempCodeRunnerFile.mojo
/temp*.mojo
kgen.trace.json*
# macOS environments
.DS_Store
# log files
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

An arbitrary-precision decimal and integer mathematics library for [Mojo](https://www.modular.com/mojo).

**[中文·漢字»](https://zhuyuhao.com/decimojo/docs/readme_zht.html)** | **[Repository on GitHub»](https://github.com/forfudan/decimojo)** | **[Changelog](https://zhuyuhao.com/decimojo/docs/changelog.html)**
**[中文·漢字](https://zhuyuhao.com/decimojo/docs/readme_zht.html)** | **[Changelog](https://zhuyuhao.com/decimojo/docs/changelog.html)** | **[Repository on GitHub»](https://github.com/forfudan/decimojo)** | **[Discord channel»](https://discord.gg/3rGH87uZTk)**

- [Overview](#overview)
- [Installation](#installation)
Expand Down
2 changes: 1 addition & 1 deletion src/decimojo/bigdecimal/bigdecimal.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ struct BigDecimal(
Examples:

```
print(BigDecimal("123.456).extend_precision(5)) # Output: 123.45600000
print(BigDecimal("123.456").extend_precision(5)) # Output: 123.45600000
print(BigDecimal("123456").extend_precision(3)) # Output: 123456.000
print(BigDecimal("123456").extend_precision(-1)) # Output: 123456 (no change)
```
Expand Down
Loading