Return logarithm of value.
Syntax
log(value, base=None, /)Parameters
| Name | Description |
|---|---|
valueInt | Float | Input value (> 0) Required · Positional only No default |
baseInt | Float | Optional base (> 0 and != 1) Optional · Positional only No default |
Returns
Float — Logarithm result.Behavior / side effects
Return logarithm of value. Uses natural log when base is omitted.
Execution
- Blocking: No
- Thread safety: Use separate objects per flow
- Parallel execution: Yes
Value operations execute in the calling flow without an intentional wait for capture, gesture completion, or user input. Create mutable containers/builders separately in each flow; this is isolation, not a shared-object synchronization guarantee.
Example
bits = log(8, 2)
text(str(bits))Errors / limitations
No additional limitations documented; follow the parameter and behavior contract above.
Related APIs
None