Answers for "convert string to in dart"

9

string to double dart

// String -> double
main () {
    var onePointOne = double.parse('1.1');
    print(onePointOne == 1.1); // prints true
}
Posted by: Guest on May-05-2020
2

int to string dart

//valid for any i
int i == int.parse(i.toString())
Posted by: Guest on September-13-2020

Code answers related to "convert string to in dart"

Browse Popular Code Answers by Language