suve

awful : function : mkint

Declaration

int :mkint ( mixed &ARG , … )

Summary

Takes any number of arguments and converts them to (decimal) ints. If the argument is a variable reference, the variable type will be changed! Returns a copy of the leftmost argument. Typecast rules are the same as when performing implicit typecasts.

Example

# Typecast example.
:set &STR s''
:read &STR
:writeln (:typeof $STR) s' ' :random $STR
:mkint &STR
:writeln (:typeof $STR) s' ' :random $STR

wikipage modified on 2014/0601/2317