Right in my snippet it's just 40-Len(x)
But the original programmer couldn't see that deeply.




-----Original Message-----
From: George Gallen <ggal...@wyanokegroup.com>
To: U2 Users List <u2-users@listserver.u2ug.org>
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: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] 
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: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] 
n Behalf Of Wjhonson
 Sent: Monday, November 14, 2011 1:59 PM
 To: u2-users@listserver.u2ug.org
 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
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
 _______________________________________________
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users

______________________________________________
2-Users mailing list
2-us...@listserver.u2ug.org
ttp://listserver.u2ug.org/mailman/listinfo/u2-users
______________________________________________
2-Users mailing list
2-us...@listserver.u2ug.org
ttp://listserver.u2ug.org/mailman/listinfo/u2-users

_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to