xyiii 0 Posted February 20, 2015 Share Posted February 20, 2015 char final; sprintf(final, "%.3f",current); Serial.println(final); When I put this code to calculate it prints only the "%.3f" I know floating point is not good to use for MSP430, but I do need the decimal places for my calculated results and need to convert to string pass on java socket. Or Can someone introduce me the fixed point calculation? many thanks! Quote Link to post Share on other sites
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.