Re: Love 4D's math interpretation...

2017-09-29 Thread Tom Dillon via 4D_Tech
Wayne Stewart via 4D_Tech wrote: >It's a feature! Yeah, you can use it to tell whether or not a DB is compiled. But, I guess "Is compiled mode" is probably easier. -- -- Tom Dillon

Re: Love 4D's math interpretation...

2017-09-29 Thread David Adams via 4D_Tech
Crap, it's documented. And, as we all know, 4D doesn't document or discuss things that might change in future versions for fear of frightening the children. But this is documented, so I guess we're safe relying on it as is ;-) **

Re: Love 4D's math interpretation...

2017-09-29 Thread Wayne Stewart via 4D_Tech
It's a feature! Regards, Wayne [image: --] Wayne Stewart [image: http://]about.me/waynestewart On 29 September 2017 at 19:18, Arnaud de Montard via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > > Le 28 sept. 2017 à 23:53, Randy Engle via 4D_Tech

Re: Love 4D's math interpretation...

2017-09-29 Thread Arnaud de Montard via 4D_Tech
> Le 28 sept. 2017 à 23:53, Randy Engle via 4D_Tech <4d_tech@lists.4d.com> a > écrit : > > > Whether it's a bug or not in 4D... a documented bug is no longer a bug  -- Arnaud de Montard ** 4D Internet Users Group (4D

RE: Love 4D's math interpretation...

2017-09-28 Thread Randy Engle via 4D_Tech
As a very young lad, probably my 5th grade math class, "Always put group arguments in parentheses" Whether it's a bug or not in 4D... there's other things to spend time on...  Randy Engle, Director XC2 Software LLC – XC2LIVE!

Re: Love 4D's math interpretation...

2017-09-28 Thread Sannyasin Siddhanathaswami via 4D_Tech
For sure! I’ve been burned by 4Ds left to right operators. I assumed 4D followed order of operations…Oops. That was a weird bug to track down. Now I’m obsessive with parentheses! Sannyasin Siddhanathaswami On Sep 28, 2017, 10:14 AM -1000, Tom Dillon wrote: A variation of this sig line would

RE: Love 4D's math interpretation...

2017-09-28 Thread Dennis, Neil via 4D_Tech
> (3+4)*5)^2)/6)-3)*(1+2) > > Not exactly easy to read. In 4D this could be simplified to 3+4*5^2/6-3*(1+2) // but with the compiler bug is real then it would be (3+4*5)^2/6-3*(1+2) // this one 4D only has 2 rules of precedence () first then left to right. I didn't know about the

RE: Love 4D's math interpretation...

2017-09-28 Thread Richard Wright via 4D_Tech
So you’re saying there’s been a bug for at least 14 years in 4D math operations when running compiled and it’s never been fixed. How hard can it be? Saying to use parenthesis to ensure the order of operations is a workaround. Are we supposed to use parenthesis around every single math operation

Re: Love 4D's math interpretation...

2017-09-28 Thread Tom Dillon via 4D_Tech
Timothy Penner via 4D_Tech wrote: >Parenthesis should always be used with 4D's math operations as a way to >force the order of operations. A variation of this sig line would be, "Smart is knowing what the order of operations should be; wise is using parentheses to be sure." --

RE: Love 4D's math interpretation...

2017-09-28 Thread Timothy Penner via 4D_Tech
Hi Tim, > So the exact same code provides different results when run interpreted or > compiled? You cannot tell me this is not a bug. > I just checked v16.1 documentation and it says nothing about math operators > working differently in compiled and interpreted. >

RE: Love 4D's math interpretation...

2017-09-28 Thread Tim Nevels via 4D_Tech
On Sep 28, 2017, at 2:00 PM, Timothy Penner wrote: > Parenthesis should always be used with 4D's math operations as a way to force > the order of operations. > > If you do not use Parenthesis then you may find different values in compiled > mode vs interpreted mode - > > For example: > >

Re: Love 4D's math interpretation...

2017-09-28 Thread Chuck Miller via 4D_Tech
Are just discovering this this has been 4D since version 1.x. Math precedence is only with parens. That is why I often perform calculations on multiple lines. Make it easier to read Regards Chuck

Re: Love 4D's math interpretation...

2017-09-27 Thread Arnaud de Montard via 4D_Tech
> Le 27 sept. 2017 à 19:08, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> a > écrit : > > 150*10^6 # 10^6*150 > > values are: > 1.139E19 vs 150,000,000 > (150*10)^6 vs (10^6)*150 > sigh... See here: Seems nice to allow user input

Re: Love 4D's math interpretation...

2017-09-27 Thread Jeremy Roussak via 4D_Tech
Why, Chip? Exponentiation is just another operator. Would you say the same about 4^6? Jeremy Roussak j...@mac.com > On 27 Sep 2017, at 18:58, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I know that - BUT - 10^6 should be interpreted as a single value > > On Wed, 27

RE: Love 4D's math interpretation...

2017-09-27 Thread Chip Scheide via 4D_Tech
I know that - BUT - 10^6 should be interpreted as a single value On Wed, 27 Sep 2017 17:18:24 +, Dennis, Neil wrote: >> 150*10^6 # 10^6*150 > > Been this way forever... 4D is () first, then strict left to right. > > Neil > > > > > > > > > -- > > Privacy Disclaimer: This message

RE: Love 4D's math interpretation...

2017-09-27 Thread Dennis, Neil via 4D_Tech
> 150*10^6 # 10^6*150 Been this way forever... 4D is () first, then strict left to right. Neil -- Privacy Disclaimer: This message contains confidential information and is intended only for the named addressee. If you are not the named addressee you should not disseminate, distribute