Skip to main content

to_long

Function to_long 

Source
pub fn to_long(s: &str) -> i64
Expand description

字符串转长整数

§Examples

use librarys::string_utils::to_long;
 
assert_eq!(to_long("123456789"), 123456789);
assert_eq!(to_long("abc"), 0);