diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-11-09 15:11:11 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-11-09 15:11:11 -0500 |
| commit | 7a4f2e73addf6dfcde2a6b17b62b961608e556a0 (patch) | |
| tree | c03e4758e5725a4a6d352f5bb7d323796ed99947 /docs/nums.md | |
| parent | 5d35f286336878a3529dabdb3f7800b6f84712eb (diff) | |
Rename `from_text()` to `parse()`
Diffstat (limited to 'docs/nums.md')
| -rw-r--r-- | docs/nums.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/nums.md b/docs/nums.md index 63fae27f..c7171f37 100644 --- a/docs/nums.md +++ b/docs/nums.md @@ -568,14 +568,14 @@ A text representation of the number with the specified precision. --- -### `from_text` +### `parse` **Description:** Converts a text representation of a number into a floating-point number. **Signature:** ```tomo -func from_text(text: Text -> Num?) +func parse(text: Text -> Num?) ``` **Parameters:** @@ -587,9 +587,9 @@ The number represented by the text or a null value if the entire text can't be p **Example:** ```tomo ->> Num.from_text("3.14") +>> Num.parse("3.14") = 3.14 ->> Num.from_text("1e3") +>> Num.parse("1e3") = 1000 ``` |
