Hi GA316
The normal reason for wrong display of numbers containing a slash (’/’) as reported in ask.libo is that the default for Calc for the questioner is to format as a date. The reason in your case is a variant upon that, and for me has revealed a truly abominable piece of coding…
Try to Remember:
With Calc, each cell is rather like a human being:- there is the body & there are the clothes (display). Sometimes one matches the other, and sometimes not. Also, small boys have a habit of hiding things in their pockets (preciousss).
With the cursor within the cell containing ‘9/100’, try the following:
- (
menu):Format→Clear Direct Formatting (Ctrl+M)
(from now on you will see the default format)
- (
menu):Format→Cells (Ctrl+1)
(what is the value in Format code?)
(mine was Number→General, and the display showed for me as “9/100”)
That previous result was because Calc silently inserted a hidden ’ (U+0027) APOSTROPHE within the cell before the 9/100; the APOSTROPHE could be seen in the input line of the Formula Bar only after changing the format to Fraction; it was always hidden within the cell, and otherwise hidden within the Formula Bar; I removed the APOSTROPHE and tried again (lo-5.0.0.5 Debian 6.0)
(changing format to Fraction→"# ??/??" then showed your result of 8/89 - hooray!)
- Modify
Format code to "# ??/???"
(display now returns to 9/100) (thanks horst)
If this helps then please tick the answer (
)
…and/or show you like it with an uptick (∧)