Error in position of decimal point
GoogleCodeExporter opened this issue · 1 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1.
String n = "320.23";
module.setDisplayToString (n);
What is the expected output? What do you see instead?
I Expected "320.23". In display appears "320 .23" the point should be appear in
the "0" digit (with point) and next character should be "2".
What version of the product are you using? On what operating system?
I use Windows 7 with 2.1.3 library.
Please provide any additional information below.
Original issue reported on code.google.com by humgon...@gmail.com
on 9 Sep 2013 at 6:50
GoogleCodeExporter commented
The setDisplayToString function is for displaying Strings - not numbers.
"320.23" is interpreted as the chars '3', '2', '0', '.', '2', '3' and that is
what is displayed.
You can display the number using the setDisplayToString function by setting the
string to "32023" and set the appropriate dots.
For example:
module.setDisplayToString("32023", 0b00100000);
Original comment by rjbati...@gmail.com
on 9 Sep 2013 at 10:49
- Changed state: WontFix