string int float dart code example Example: how to convert int/int to float dart int x = 10; double a = x.toDouble();