Or didn't know about the INT() command, and forced everything to be even.....
Which in reality, is kinda odd. (Couldn't resist). -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Wjhonson Sent: Monday, November 14, 2011 2:48 PM To: [email protected] Subject: Re: [U2] Simplify, or why mathematicians make better programmers Right in my snippet it's just 40-Len(x) But the original programmer couldn't see that deeply. -----Original Message----- From: George Gallen <[email protected]> To: U2 Users List <[email protected]> Sent: Mon, Nov 14, 2011 11:43 am Subject: Re: [U2] Simplify, or why mathematicians make better programmers Actually, the INT wouldn't be needed. I'm guessing that the +1 was to make the 79 even nything*2 will be even So and even# (80) - and even# (*2) / 2 will always be even , no int needed. -----Original Message----- rom: [email protected] [mailto:[email protected]] n Behalf Of Charlie Noah ent: Monday, November 14, 2011 2:41 PM o: U2 Users List ubject: Re: [U2] Simplify, or why mathematicians make better programmers Actually, it needs more than simplification - the result it returns is lose, but not exactly right. I use OL = INT((79 - LEN(SITE.NAME)) / 2), which, if LEN(SITE.NAME) = 10, is 4. The exact position would be 34.5, but that half a column is tough to o (hence the INT). The original code snippet returned 30. Charlie On 11-14-2011 1:19 PM, George Gallen wrote: I'm guessing it started out simpler, and extra steps were added to make lignment corrections, And nobody bothered to simplify. -----Original Message----- From: [email protected] [mailto:[email protected]] n Behalf Of Wjhonson Sent: Monday, November 14, 2011 1:59 PM To: [email protected] Subject: Re: [U2] Simplify, or why mathematicians make better programmers COL = (79-LEN(SITE.NAME)*2+1)/2 Is it just me, or are there people out there who really don't get math ? _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users ______________________________________________ 2-Users mailing list [email protected] ttp://listserver.u2ug.org/mailman/listinfo/u2-users ______________________________________________ 2-Users mailing list [email protected] ttp://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users
