Created
September 13, 2019 19:19
-
-
Save raushankrjha/f72e65761f6559874416fd60c4b6a2da to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main() | |
{ | |
// String to int | |
var one = int.parse('1'); | |
print(one); | |
// String to double | |
var onePointOne = double.parse('1.1'); | |
print(onePointOne); | |
// int to String | |
String twenty = 20.toString(); | |
print(twenty); | |
// double to String | |
String pi= 3.14316.toStringAsFixed(2); | |
print(pi); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment