Alexandria Uptime: 3.33 Days
Total players online: 7



Take the Tour | Site Map

Name

toNumber — Parse a string and return its numerical value.

Synopsis

call string.txt toNumber { string } [ return ]

Author

the.WZA

Parameters

Table 110. toNumber parameters

NameDescription
stringString to be parsed as a number.
returnName of return value ('return' by default).

Description

Parse a string and return its numerical value.

Returns

@%2

Changes

#strRes

Example

call string.txt toNumber 69_items
call string.txt toNumber -10_gold_pieces cost

See Also

string.extractNumberBefore