Hi Spencer,

Yes, it is! So simple. Thank you.

Perhaps some more help from someone? I’m trying to translate some code on the 
web into 4D. Here are the lines of code along with an explanation:

range = max - min;  
exponent = int(log(range)); 
magnitude = pow(10, exponent);
//So, for example, if your range is from 50 - 1200, the exponent is 3 and the 
magnitude is 1000.


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.

--
Cannon.Smith
Synergy Farm Solutions Inc.
Hill Spring, AB Canada
403-626-3236
<can...@synergyfarmsolutions.com>
<www.synergyfarmsolutions.com>


> On Jul 24, 2018, at 10:19 AM, Spencer Hinsdale via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> is it caret?
> 
> 7^3
> 

**********************************************************************
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
**********************************************************************

Reply via email to