> On 24 Jul 2018, at 17:32, Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > > In 4D I’m doing this: > > $rRange:=1200-50 > $rExponent:=Int(Log($rRange)) > $rMagnitude:=10^$rExponent > > But I’m getting an exponent of 7 instead of 3. Any ideas what I’m doing wrong? > > Thanks.
You’re using log base e. It’s not clear from the docs that 4D has a log base 10 function. You might have to divide by 10 in a loop. Jeremy ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************