Deprecated: register_widget_control is deprecated since version 2.8.0! Use wp_register_widget_control() instead. in /home/sankarshan/sankarshan.randomink.org/blog/wp-includes/functions.php on line 4853

Deprecated: register_sidebar_widget is deprecated since version 2.8.0! Use wp_register_sidebar_widget() instead. in /home/sankarshan/sankarshan.randomink.org/blog/wp-includes/functions.php on line 4853
Comments on: Quirky behavior of oocalc http://sankarshan.randomink.org/blog/2008/10/15/quirky-behavior-of-oocalc/ A collection of jottings on various issues that excite no one else Thu, 16 Oct 2008 10:08:23 +0000 hourly 1 https://wordpress.org/?v=5.6.17 By: vcp http://sankarshan.randomink.org/blog/2008/10/15/quirky-behavior-of-oocalc/comment-page-1/#comment-66738 Thu, 16 Oct 2008 10:08:23 +0000 http://sankarshan.randomink.org/blog/?p=429#comment-66738 This is not a bug.
F2 != F4
G2 != G4

You can put some checks to make sure that your assumptions are correction. Just like assertions in source code.

For example, to check if cell G4 and G6 are really equal, following check could be used.
=IF(G4=G6;”SAME”;”DIFFERENT”)

———————–
Also try changing precision (decimal places) used for display purpose.

Tools -> Options –> OO.Calc -> View

Also make sure to increase column widths to properly display higher precision values.

]]>
By: sankarshan http://sankarshan.randomink.org/blog/2008/10/15/quirky-behavior-of-oocalc/comment-page-1/#comment-66737 Thu, 16 Oct 2008 06:25:23 +0000 http://sankarshan.randomink.org/blog/?p=429#comment-66737 In reply to Tarique Sani.

Well, not having used a spreadsheet in a while, I would have expected the underlying calculated value to be what gets displayed as the presented value. But, figured out what was wrong 🙂

]]>
By: Tarique Sani http://sankarshan.randomink.org/blog/2008/10/15/quirky-behavior-of-oocalc/comment-page-1/#comment-66735 Thu, 16 Oct 2008 04:36:13 +0000 http://sankarshan.randomink.org/blog/?p=429#comment-66735 In reply to sankarshan.

I would be very pissed if what i see on the screen was the underlying numerical value.

I would say you are confusing content with presentation.

]]>
By: sankarshan http://sankarshan.randomink.org/blog/2008/10/15/quirky-behavior-of-oocalc/comment-page-1/#comment-66731 Wed, 15 Oct 2008 23:28:36 +0000 http://sankarshan.randomink.org/blog/?p=429#comment-66731 In reply to Isak Savo.

Nope you are not. As a comment states, it is best to use round().

]]>
By: sankarshan http://sankarshan.randomink.org/blog/2008/10/15/quirky-behavior-of-oocalc/comment-page-1/#comment-66730 Wed, 15 Oct 2008 23:27:50 +0000 http://sankarshan.randomink.org/blog/?p=429#comment-66730 In reply to John Poelstra.

Isn’t what I see on the screen supposed to be the underlying numerical value ? 🙂

]]>
By: smeagol http://sankarshan.randomink.org/blog/2008/10/15/quirky-behavior-of-oocalc/comment-page-1/#comment-66729 Wed, 15 Oct 2008 21:08:48 +0000 http://sankarshan.randomink.org/blog/?p=429#comment-66729 The result is not accurate, 358 / 380 = 0,942105263…

]]>
By: noName http://sankarshan.randomink.org/blog/2008/10/15/quirky-behavior-of-oocalc/comment-page-1/#comment-66727 Wed, 15 Oct 2008 17:06:34 +0000 http://sankarshan.randomink.org/blog/?p=429#comment-66727 This is not an Error: 358/380=0.942105263 not 0.94!
Ckeck your cell formatting.

]]>
By: John Poelstra http://sankarshan.randomink.org/blog/2008/10/15/quirky-behavior-of-oocalc/comment-page-1/#comment-66726 Wed, 15 Oct 2008 16:10:44 +0000 http://sankarshan.randomink.org/blog/?p=429#comment-66726 It is not broken.

Expand the formatting for all of the values in column ‘F’ to multiple decimal places… say, 10

It is the formatting of the cells and the number decimal places… a common gotcha with spreadsheets where calculated values are used in subsequent computations and then compared to hand entered values with less decimal places..

What you see on the screen isn’t exactly what the underlying numerical value is.

]]>
By: Isak Savo http://sankarshan.randomink.org/blog/2008/10/15/quirky-behavior-of-oocalc/comment-page-1/#comment-66725 Wed, 15 Oct 2008 15:51:26 +0000 http://sankarshan.randomink.org/blog/?p=429#comment-66725 I don’t see the problem. Yes you get different values, but that’s because your calculated cells (the ones with forumlas) contains higher precision than the ones you entered yourself. Try changing the formatting of the cells and you’ll see the difference.

I did the calculations on a standard calculator and found no errors…

or am I missing something?

]]>
By: markrian http://sankarshan.randomink.org/blog/2008/10/15/quirky-behavior-of-oocalc/comment-page-1/#comment-66724 Wed, 15 Oct 2008 15:48:12 +0000 http://sankarshan.randomink.org/blog/?p=429#comment-66724 You’ve simply lost precision. Calc/Spreadsheets carry more precision in their calculations than may be displayed in the cells.

Select the column G and click the button to add decimal places a few times. What you copied down is not exactly the same number as was calculated.

]]>