Skip to content

Commit

Permalink
Merge branch 'next' of github.com:morpho-org/sdks into next
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubilmax committed Nov 26, 2024
2 parents 1e42bba + c32fdac commit 47f786f
Show file tree
Hide file tree
Showing 3 changed files with 404 additions and 12 deletions.
17 changes: 11 additions & 6 deletions packages/morpho-ts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,20 @@ format.number.of(123.45); // "123.45"

**Customization Methods:**

- `.digits(number)`: Sets the number of decimal digits.
- `.digits(number)`: Sets the number of decimal digits. <span style="color:#C73E59">*</span>
- `.removeTrailingZero()`: Removes trailing zeros after the decimal.
- `.min(number)`: Sets the minimum value; values below this will display as `< min`.
- `.max(number)`: Sets the maximum value; values above this will display as `> max`.
- `.min(number)`: Sets the minimum value; values below this will display as `< min`. <span style="color:#C73E59">*</span>
- `.max(number)`: Sets the maximum value; values above this will display as `> max`. <span style="color:#C73E59">*</span>
- `.sign()`: Adds a sign to the number (`+` or `-`).
- `.unit(string)`: Adds a unit to the number (e.g., `$`, `%`).
- `.locale(string)`: Formats the number according to the specified locale.
- `.unit(string)`: Adds a unit to the number (e.g., `$`, `%`). <span style="color:#C73E59">*</span>
- `.locale(string)`: Formats the number according to the specified locale. <span style="color:#C73E59">*</span>
- `.readable()`: Makes the value more readable for small numbers.
- `.default(string)`: Sets a default value in case `value` (or `decimals`) is `null` or `undefined`.
- `.default(string)`: Sets a default value in case `value` (or `decimals`) is `null` or `undefined`. <span style="color:#C73E59">*</span>



_<sub><span style="color:#C73E59">*</span> If the provided value is `null` or `undefined`, the option is ignored.</sub>_


---

Expand Down
Loading

0 comments on commit 47f786f

Please sign in to comment.