User Tools

Site Tools


4rpl:commands:asint

This is an old revision of the document!


Index

asint

asint (<-floatval) ->intval

Description

Converts an item on the stack to an integer, and pushes it back to the stack.

If used on a float, will truncate any decimal value. i.e. 42.8 asint will return 42.

Examples

42.6 asint ->val #Becomes 42

Index

4rpl/commands/asint.1649686545.txt.gz · Last modified: 2025/02/14 14:56 (external edit)