User Tools

Site Tools


xrpl:log

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

xrpl:log [2019/03/03 23:11] – created Karsten75xrpl:log [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
- 
-=====  log   ===== 
- 
-^Arguments^Result^Notation^ 
-|arg base| float| [float float- float] | 
- 
- 
-=== Description === 
-Allows the performance of arbitrary based logarithms. See examples. On zero, returns -inf. Below zero, returns NaN, a special value that always causes failure when compared to other numbers. (ie. (NaN<0) -> false, (NaN>=0) -> false)<br/>  
-other logarithms<br/>  
-log(x,10) = log10(x)<br/>  
-log(x,e) = ln(x)  
- 
-=== Examples === 
-<code>trace(log(2 .5))   #prints '-1'  
-trace(log(.25 .5)) #prints '2'  
-</code> 
  
xrpl/log.1551654666.txt.gz · Last modified: 2025/02/14 14:56 (external edit)