float typecast python code example Example 1: python cast to float float('1.234') Example 2: how to tyoecast in python example = 1.3234325 print(type(example))