Timothy Milliken

Problem with CW12 4.5

Discussion created by Timothy Milliken on Feb 9, 2007
Latest reply on Jun 16, 2007 by nimik
I am having an issue with CW12 4.5 and sprintf. The problem is that when ever I use sprintf to format a float, the value in the buffer is not the same as the float and the is no method to how far it is off from the orginal float. Here is a sample line of code. Any ideas anyone?? Tim
sprintf(MyChar, "%1.2f", MyFloat);

Outcomes