Jul-30-2020, 02:45 PM
Hello,
I'm trying to format a float and I can't seem to figure it out. I've been able to make the float only have two decimal places. But I need to format it a little more so that it shows as 4+22.92
I'm trying to format a float and I can't seem to figure it out. I've been able to make the float only have two decimal places. But I need to format it a little more so that it shows as 4+22.92
N6=NFile[NFile['Node'].str.match(N5,na=False)]['Mile'] N7=N6.to_string(header=None,index=False).strip() N8=float(N7)*5280 N9 = float("{':.2f}".format(N8)) N8 shows 422.928 N9 shows 422.92 How can I make N9 show as 4+22.92