-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
expressions: add to_string for num namespace
- Loading branch information
1 parent
ead2748
commit 83fb361
Showing
14 changed files
with
451 additions
and
1,603 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
title: To String | ||
order: 0 | ||
status: published | ||
--- | ||
|
||
### To String | ||
|
||
Function in `num` namespace to convert a number to a string. | ||
|
||
#### Returns | ||
<Expandable type="Expr"> | ||
Returns an expression object denoting the string value of the input data. The | ||
data type of the resulting expression is `str` (or `Optional[str]` if the input | ||
is an optional number). | ||
</Expandable> | ||
|
||
<pre snippet="api-reference/expressions/num#to_string" | ||
status="success" message="Converting a number to a string using Fennel expressions"> | ||
</pre> | ||
|
||
#### Errors | ||
<Expandable title="Invoking on a non-numeric type"> | ||
Error during `typeof` or `eval` if the input expression is not of type int, | ||
float, optional int or optional float. | ||
</Expandable> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.