[Solved] Calc won't calculate (AutoCalculate=checked)

Discuss the spreadsheet application
Post Reply
User avatar
TerryS24
Posts: 5
Joined: Sat Feb 24, 2024 9:43 am

[Solved] Calc won't calculate (AutoCalculate=checked)

Post by TerryS24 »

I created (with OO v4.1.15) what I think is a "simple" spreadsheet to:
  1. List powers of 2 from 1-64
  2. Calculate the decimal value of said powers (i.e. how many numbers can be represented in binary)
Formulas will not calculate no matter what I do! Furthermore, the formula does not display, either! It did before I formatted the cells to "Number", "General" and chose the "Cambria Math" font, though you had to click to see it because it number-cell contents were strangley auto-surrounded by extra padding).

So far I have:
  1. Ensured the cells are formatted for "Number", "General".
  2. Chose font "Cambria Math". (It shouldn't matter for simple integers, should it?)
  3. Verified that "View > Cell contents > AutoCalculate" is checked (it already was).
  4. Verified that "Tools > Options > OpenOffice Calc > View > Formulas" is un-checked (it already was).
  5. Changed "Tools > Options > OpenOffice Calc > View > Value highlighting" to checked.
  6. Tried pressing "F9" on my keyboard.
  7. Tried clicking "View > Cell contents > Recalculate".
  8. Used the Formula Wizard to ensure the formula is valid and the wizard displays correct results (it does).
but all to no avail! :crazy:

The number cells display nothing, but if I click each cell I see the correct formula in the formula bar.

FYI, (text) headers are in A1-B1 (merged), A2 and B2. So my 64 rows are 3-66.
I handcoded A3 to: =1
I pasted into A4-A66 formula from wizard: =SUM($A3;1)
I verified (clicking cell and looking at formula bar) that other rows really got: =SUM($A5;1) ... =SUM($A66;1)
I pasted into B3-B66 formula from wizard: =POWER(2;$B3)
I verified that other rows really got: =POWER(2;$B4) ... =POWER(2;$B66)
So all the formulas got pasted correctly, using the proper row numbers. But nothing displays in cells.

This is straightforward, but I'll upload the file anyway.
Attachments
Binary_ThePowerOf2.ods
(12.76 KiB) Downloaded 68 times
Last edited by robleyd on Sat Feb 24, 2024 2:46 pm, edited 3 times in total.
Windows 8.1 64-bit with OpenOffice 4.1.15 Libre Office 7.6.5.2 x86-64.
User avatar
floris v
Volunteer
Posts: 4431
Joined: Wed Nov 28, 2007 1:21 pm
Location: Netherlands

Re: OO v4.1.15 Calc won't calculate even if AutoCalculate=checked and View Formulas=unchecked

Post by floris v »

Welcome to the forum. And a big thank you for providing the offending document right away.
The good news is, it works like a charm in AOO 4.1.11 and also in LibreOffice 24.2.
 Edit: Forgot to add that I don't have Cambria math installed. 
OpenOffice 4.1.11 on Ubuntu; LibreOffice 6.4 on Linux Mint, LibreOffice 7.6.2.1 on Ubuntu
If your problem has been solved or your question has been answered, please edit the first post in this thread and add [Solved] to the title bar.
Nederlandstalig forum
User avatar
TerryS24
Posts: 5
Joined: Sat Feb 24, 2024 9:43 am

Re: OO v4.1.15 Calc won't calculate even if AutoCalculate=checked and View Formulas=unchecked

Post by TerryS24 »

This seems to be a bug, then. Perhaps settings are being saved (I see they are) but not applied? Or not to existing documents?
Windows 8.1 64-bit with OpenOffice 4.1.15 Libre Office 7.6.5.2 x86-64.
cwolan
Posts: 129
Joined: Sun Feb 07, 2021 3:44 pm

Re: OO v4.1.15 Calc won't calculate even if AutoCalculate=checked and View Formulas=unchecked

Post by cwolan »

Doesn't work for me on Windows in any version (including 4.1.11).
Nothing seems to be displayed because of the font "Cambria Math".

Change the row height or the font and the values appear.
rowHeight.png
rowHeight.png (59.12 KiB) Viewed 1150 times

TerryS24 wrote: Sat Feb 24, 2024 12:05 pm This seems to be a bug, then. Perhaps settings are being saved (I see they are) but not applied? Or not to existing documents?
Probably: Issue 112799 - Wrong font height for Cambria Math
OpenOffice 1.1.5 – 4.1.15
LibreOffice 3.3.0.4 – 7.6.6
Windows 7,10,11 64-bit
User avatar
RoryOF
Moderator
Posts: 34618
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: OO v4.1.15 Calc won't calculate even if AutoCalculate=checked and View Formulas=unchecked

Post by RoryOF »

Opened and worked for me with no problems using OpenOffice 4.1.15 on Xubuntu 22.04.3, with Cambria Math installed.

I was able to change the value in A3 and got immediate recalculation from that initial value.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
User avatar
Zizi64
Volunteer
Posts: 11364
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: [SOLVED] OO v4.1.15 Calc won't calculate even if AutoCalculate=checked and View Formulas=unchecked

Post by Zizi64 »

Note:

The Calc will show the result of 2^64 as 18446744073709600000, but the correct result is 18446744073709551616.

The "Double precision floating point numbers" (what the spreadsheet softwares use) can not show precisely those huge integers. You must use some tricks for displaying a precise "result". The precision limit is about 15 digits (in decimal format).
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
Alex1
Volunteer
Posts: 726
Joined: Fri Feb 26, 2010 1:00 pm
Location: Netherlands

Re: [Solved] OO v4.1.15 Calc won't calculate even if AutoCalculate=checked and View Formulas=unchecked

Post by Alex1 »

LibreOffice can handle positive numbers <= 2^53, and display positive numbers < 2^53 correctly. The power function is less precise than multiplication.
OpenOffice is less precise than LibreOffice.
C3: =B3-1
D3: 2
D4: =2*D3
E3: =D3-1
Fill down columns C-E and make them wide enough.
AOO 4.1.15 & LO 24.2.2 on Windows 10
User avatar
TerryS24
Posts: 5
Joined: Sat Feb 24, 2024 9:43 am

Re: [SOLVED] OO v4.1.15 Calc won't calculate even if AutoCalculate=checked and View Formulas=unchecked

Post by TerryS24 »

Zizi64 wrote: Sat Feb 24, 2024 3:00 pm The Calc will show the result of 2^64 as 18446744073709600000, but the correct result is 18446744073709551616.

The "Double precision floating point numbers" (what the spreadsheet softwares use) can not show precisely those huge integers. You must use some tricks for displaying a precise "result". The precision limit is about 15 digits (in decimal format).
Thank you!

Forgot to mention: Solution was to change the font, mentioned by several people. (To grossly increase cell size as shown would have worked, too.) Calc sheet was created in OOo, have since switched to LO, will have to look into that later ... just wanted a PDF to play with python/pypdf/fpdf/qpdf etc.
Windows 8.1 64-bit with OpenOffice 4.1.15 Libre Office 7.6.5.2 x86-64.
Post Reply