The function printDouble doesn't work properly on negative values.
i.e. on input value -12.34 it returns the wrong string '-12.0-34'.
As possible correction the fractional part should be computed as an absolute value:
fractPart = abs((int)((v-(double)(int)v)*i));
in this case, the input value -12.34 returns the right string '-12.34'.
Issue type: Defect
Severity: Default
Created 7 years, 6 months ago.Updated 7 years, 6 months ago.
Important Information for this Arm website
This site uses cookies to store information on your computer.
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
Cookie Policy
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.
Access Warning
You do not have the correct permissions to perform this operation.