possible equation mistake or "bug"

I recently posted a question that no one was able to help me out on and I eventually figured out my self.......had to recall some old algebra skills...... anyhow all of the math seems to be working correctly except for a few instances.  this equation is being used to "drive" and automated part file. pretty much the same part just different sizes. this part is as shown below in figure A.  When the width dimension changes, which is only in 0.5" increments I wanted the vertical wires to update accordingly. and dimension "C" to never be greater than 1.5" and the distance between wires to always be 1.5". I was able to accomplish this by using the "roundup" function, however the round up function can not be used in solidworks equations, so I used a work around to get the end result.  these two equations were input into excel and tested with success.  but when I input the "work around" equation into solidworks, in two instances solidworks is not figuring the math correctly. those two instances are when the width is 26.5 and 43.  figure B is a screen shot of my equation table. I have attached the part file with the equation table filled out and I guess I am asking if someone else would be willing to look at this and see if I am correct and solidworks is not calculating the math correctly or have I "input" something incorrectly. I think the equation for "global variable Z" is not being calculated correctly in the two dimensions of 26.5 and 43 and that is where the problem lies.

                                                              FIGURE A

                                                        FIGURE B

SolidworksGeneral