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.8 asint ->val #Becomes 42
 
asInt(42.8) ->val #Warp notation, accomplishes the same effect.

Index

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