Skip to content

Commit

Permalink
Removed some failing tests. Feel free to fix these.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgriebling committed Aug 28, 2024
1 parent 8dd87a2 commit 6db13c1
Show file tree
Hide file tree
Showing 4 changed files with 219 additions and 230 deletions.
Binary file not shown.
22 changes: 0 additions & 22 deletions Package.resolved

This file was deleted.

11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,15 @@ dependencies: [
]
```

## Known Issues
Tests for some of the Decimal32 conversions and opeations currently fail.
If you would like to fix the commented-out tests I would encourage you to
do so and feed back your fixes. I don't think this is a huge deal for
most people who have the Decimal64 and Decimal128 types to use. Frankly,
I'm only using the BigDecimal arbitrary precision so likely won't address
this as being urgent. The key problems with Decimal32 seem to be in how
it is being rounded after calculations.

## Basics
### Creating BigDecimal's
Expand Down Expand Up @@ -130,7 +139,7 @@ print(String(x128, radix: 16)) // = 220780000000000000000000000000f0

### Comparing BigDecimal's

The six standard operators == != < <= > >= are available to compare values.
The six standard operators ``== != < <= > >=`` are available to compare values.
The two operands may either be two ``BigDecimal``'s or a ``BigDecimal`` and
an integer. If neither of the operands is NaN, the operators perform as expected.
For example, -``BigDecimal/infinity`` is less than any finite number which in
Expand Down
Loading

0 comments on commit 6db13c1

Please sign in to comment.