📜  飞镖代码示例中的字符串到int

📅  最后修改于: 2022-03-11 14:48:09.101000             🧑  作者: Mango

代码示例6
main () {
// String -> int
    var one = int.parse('1');
    print(one == 1); // prints true
    
// String -> double
    var two = double.parse('10');
    print(two); //result is => 10.0
}