Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

This website is an archive and is no longer active
NeoOffice announcements have moved to the NeoOffice News website


Support
· Forums
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


  
NeoOffice :: View topic - Calculation failure on transition from NO2 to NO3
Calculation failure on transition from NO2 to NO3
 
   NeoOffice Forum Index -> NeoOffice Beta Releases
View previous topic :: View next topic  
Author Message
freddyj1
Blue Pill


Joined: Mar 28, 2009
Posts: 3

PostPosted: Mon Mar 30, 2009 10:38 am    Post subject: Calculation failure on transition from NO2 to NO3

Interest calculation:

=(A10-A9)*B4*D9 works in Ver 225 but returns a 0 (zero) in Ver 3

A10 and A9 contain dates
B4 contains the daily interest rate
D9 contains the balance as of previous payment.

Day count portion of calculation seems OK.

Has something significant changed in formula entry that I missed?
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Mon Mar 30, 2009 10:56 am    Post subject:

I can reproduce same behavior in OpenOffice.org 3.0.1 which is the version that NeoOffice 3.0 is based on.

Fortunately, while OpenOffice.org did change something, I found an easy fix: go into each cell that has a "%" character in it and insert an "=" character at the beginning of the cell.

What appears to have changed in OpenOffice.org 3.0.1 is that a cell with "0.1234%" will be evaluated as text instead of a number. By changing the cell to "=0.1234%", NeoOffice's underlying OpenOffice.org will treat the data as a number like in earlier versions.

Patrick
Back to top
yoxi
Cipher


Joined: Sep 07, 2004
Posts: 1799
Location: Dawlish, Devon

PostPosted: Mon Mar 30, 2009 11:37 am    Post subject:

Interesting - I tried this in Neo v3, and while it worked for the 5.xxxx% value, it failed for the % value with lots of numerals after the decimal point - the cell contents show the = sign and it still gets parsed as a text value.

*edit* Ah, that's because there's a space in the cell before the first 0! Works fine if the space is deleted.

- padmavyuha
Back to top
Jim
Councilperson


Joined: Jun 21, 2003
Posts: 173
Location: Selmer, Tennessee

PostPosted: Mon Mar 30, 2009 12:08 pm    Post subject:

I tried removing the space in Neo 3.0 and it didn't work. Using Patrick's trick of putting an equal sign in front of the zero (Cell B4) did. I just changed the formula in B4 to =C4/365, which is what it should be anyhow.

Seems as if once Calc gets a format into its little head, it doesn't want to let go of that format. But in this case, even changing the format to a number (not a percent) only made it display zero instead of the numeric value for the daily rate.

_________________
Jim Plante
MacOS X 10.6.34, MacBook 2GHz C2Duo, 2gb, Neo 3.1.1 p 1
Back to top
Samwise
Captain Naiobi


Joined: Apr 25, 2006
Posts: 2315
Location: Montpellier, France

PostPosted: Mon Mar 30, 2009 12:53 pm    Post subject:

Jim wrote:
I tried removing the space in Neo 3.0 and it didn't work. Using Patrick's trick of putting an equal sign in front of the zero (Cell B4) did.


That's probably because you needed to remove the space and add the equal sign Wink
Back to top
yoxi
Cipher


Joined: Sep 07, 2004
Posts: 1799
Location: Dawlish, Devon

PostPosted: Mon Mar 30, 2009 12:54 pm    Post subject:

"I tried this in Neo v3" meant I tried what Patrick suggested with the = sign, but it didn't work because of the space between the = and the 0 Smile.

...what he said... Smile
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Mon Mar 30, 2009 6:52 pm    Post subject:

I have some interesting news. I opened the sample spreadsheet in OpenOffice.org 2.2.1 and got the same behavior as NeoOffice 3.0 and OpenOffice.org 3.0.1. Since RetroOffice 2.2.5 behaves the same as NeoOffice 2.2.5, that means that the NeoOffice 2.2.5 behavior was a modification to the OpenOffice.org code added by Novell's Go-oo engineers.

I suspect that NeoOffice 3.0 Early Access also had this Go-oo feature and my removal of some Go-oo modifications to fix bug 3427 may have inadvertently removed this Go-oo feature.

I need to find the Go-oo modification that causes bug 3427. While I am working on that bug, I will try adding back some of the Go-oo modifications that I previously removed and see if the NeoOffice 2.2.5 behavior returns.

Patrick
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Thu Apr 02, 2009 9:49 am    Post subject:

FYI. I have confirmed that my suspicion was correct: removal of some Go-oo modifications to fix bug 3427 inadvertently removed this Go-oo feature.

I have added back pieces of that Go-oo modification and I think that I have found the combination that restores this feature without causing bug 3427 to reoccur.

I have created bug 3440 to track our investigation of this bug. Please add yourself to the CC: list in the bug if you would like to track its progress and to get automatically notified when we have a test patch available.

Patrick
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Sat Apr 04, 2009 12:53 pm    Post subject:

I think that I have fixed this bug and I have posted links to a test patch in my last post in bug 3440.

Can you install the test patch and tell us if the bug is fixed for you?

Patrick
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Tue Apr 14, 2009 12:31 pm    Post subject:

FYI. I have included the fix for this bug in NeoOffice 3.0 Patch 1. You can download the patch from the following URL:

http://www.neooffice.org/neojava/patch.php

Patrick
Back to top
Display posts from previous:   
   NeoOffice Forum Index -> NeoOffice Beta Releases All times are GMT - 7 Hours
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.