Log

Log( value )
Log( value )
Log( value )
Log( value )
log( value )
Log( value )

Description

The Log function returns the natural logarithm (base 10) of the operand.

Parameters

Argument Type Definition and Requirements

value

The number whose base-10 natural logarithm should be returned.

Returns

A number which is the result of the Log operation.

Examples

The following query returns the base-10 natural logarithm of the value 0.5:

Value result = await client.Query(
    Log(0.5)
);

Console.WriteLine(result);
DoubleV(-0.3010299956639812)
result, err := client.Query(
	f.Log(0.5))

if err != nil {
	fmt.Fprintln(os.Stderr, err)
} else {
	fmt.Println(result)
}
-0.3010299956639812
System.out.println(
    client.query(
        Log(Value(0.5))
    ).get());
-0.3010299956639812
client.query(
  q.Log(0.5)
)
.then((ret) => console.log(ret))
.catch((err) => console.error('Error: %s', err))
-0.3010299956639812
result = client.query(
  q.log(0.5)
)
print(result)
-0.3010299956639812
println(Await.result(
    client.query(
        Log(0.5)
    ),
    5.seconds
))
-0.3010299956639812

Was this article helpful?

We're sorry to hear that.
Tell us how we can improve!
Visit Fauna's Discourse forums or email docs@fauna.com

Thank you for your feedback!