#!/usr/bin/env python3; import Utils # Begin Main sFloat = "3.1415926" sInt = "3" sLong = "123456789123456789" a = Utils.stodWithDefault(sFloat, 0.0) b = Utils.stoiWithDefault(sInt, 0) c = Utils.stoiWithDefault(sLong, 0) strA = str(a) strB = str(b) strC = str(c) print("sFloat as double: {0:f}".format(a)) print("sInt as int: {0:d}".format(b)) print("sLong as long: {0:d}".format(c)) print("a as string: {0:s}".format(strA)) print("b as string: {0:s}".format(strB)) print("c as string: {0:s}".format(strC))