log

calculate the logarithm of value using given base


Parameters

log value :integer :floating
    base :integer :floating

Returns

  • :floating

Examples

copy
print log 9 3 ; 2.0 print log 32.0 2.0 ; 5.0 print log 0.0 2 ; -inf print log 100.0 10.0 ; 2.0

Related