Shop OBEX P1 Docs P2 Docs Learn Events
FloatToString — Parallax Forums

FloatToString

CncjerryCncjerry Posts: 64
edited 2012-08-03 08:53 in Propeller 1
I have floating point working and was wondering if there is an easier way to set the precision to 2? I was going to multiply by 100, round, take the integer and then divide by 100. This is to get results that look like 100.02; 555.07, etc. I guess I could also just print it out correctly from the string. What would you do?


Jerry

Comments

Sign In or Register to comment.