OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Conditional formmatting issue when value ends in zero

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
bossler13
Newbie
Newbie


Joined: 01 Jul 2012
Posts: 1

PostPosted: Sun Jul 01, 2012 8:47 am    Post subject: Conditional formmatting issue when value ends in zero Reply with quote

I have conditional formatting set up to change cell backround color to red when selected cell (A) "is not equal to" the reference cell (B). It works as desired with one exception.

The reference cell has a formula of =cell(C) - cell (D). All cells are formatted as currency.
whenever the value of (C) or (D) end with a zero ex.$255638.20 the conditional formatting of (A) highlights the cell red as if the values were not equal. They are in fact equal. I have looked for a resolution for weeks and haven't figured it out..

Any help would be greatly appreciated!
Back to top
View user's profile Send private message
Alex3
Newbie
Newbie


Joined: 26 Aug 2010
Posts: 4

PostPosted: Sun Jul 01, 2012 8:57 am    Post subject: Reply with quote

Non-integer numbers cannot be represented exactly in binary arithmetic, unless they can be written as a quotient of integers in which the denominator is a power of 2. So when you want to compare two non-integer numbers with two decimals you might write ABS(a-b)<0.003.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot 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


Powered by phpBB © 2001, 2005 phpBB Group