Skip to content

Added (int ..)#104

Merged
skx merged 1 commit into
mainfrom
102-int
Jul 2, 2026
Merged

Added (int ..)#104
skx merged 1 commit into
mainfrom
102-int

Conversation

@skx

@skx skx commented Jul 2, 2026

Copy link
Copy Markdown
Owner

This converts the given numeric thing to an int (i.e. float, int or char). To avoid surprises all other values become zero.

So (int nil) is zero, for example. As is (int "3.2") which might be confusing.

This closes #102.

This converts the given numeric thing to an int (i.e. float, int
or char).  To avoid surprises all other values become zero.

So `(int nil)` is zero, for example.  As is `(int "3.2")` which
might be confusing.

This closes #102.
@skx skx merged commit a56b04c into main Jul 2, 2026
1 check passed
@skx skx deleted the 102-int branch July 2, 2026 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

stdlib: need a function to convert to integer

1 participant