From 7a4f2e73addf6dfcde2a6b17b62b961608e556a0 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 9 Nov 2024 15:11:11 -0500 Subject: Rename `from_text()` to `parse()` --- docs/nums.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs/nums.md') 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 ``` -- cgit v1.2.3