Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 335 Bytes

intval.sh.md

File metadata and controls

14 lines (12 loc) · 335 Bytes

intval

intval -- Casts a variable as an integer value.

Casts variable into integer type. If it fails, returns 1.

Usage

// 1-a. Function from.
bool func::intval(string* output, string input)
// 1-b. Inplace function form.
bool func::intval(string* variable)
// 2. Command form.
bool sub::intval(string input) > output