how to set float how many decimal code example Example: how do i limit decimals to only two decimals in python answer = str(round(answer, 2))