Many thanks
Ferdinando
Il 29/06/2022 23:28, Neil Dennis ha scritto:
This just comes down to math:
You can calculate the log of any base if you have log of any other base.
4D has the command Log (which is a natural log based on e… 2.718 etc). We can
use it to convert logs to any base.
If you want log base 10 do the following:
$x:=100
$log:=Log($x)/Log(10)
ALERT(String($log))
$log will be 2 as expected
If you wanted base 3 log
$x:=81
$log:=Log($x)/Log(3)
ALERT(String($log))
$log will be 4 as expected
Neil
On Jun 29, 2022, at 3:09 PM, stardata.info via 4D_Tech <[email protected]>
wrote:
Hi All,
I need to calculate a logarithm on base 10 of one number.
Someone know tha 4D Command that i can use?
Thanks
Ferdinando
**********************************************************************
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************
**********************************************************************
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************