Documentation Index
Fetch the complete documentation index at: https://docs.canton.network/llms.txt
Use this file to discover all available pages before exploring further.
DA.Math
Math - Utility Math functions forDecimal
The this library is designed to give good precision, typically giving 9 correct decimal places.
The numerical algorithms run with many iterations to achieve that precision and are interpreted
by the Daml runtime so they are not performant. Their use is not advised in performance critical
contexts.
Module Snapshot
Lifecycle
Stable.
Notices
Status:
active
Introduced in: 3.4.9
Removed in: -
Warnings: 0
Deprecations: 0
Deprecated since: -Functions
**
2.0 ** 3.0 == 8.0.
sqrt
exp
exp 0.0 == 1.0
log
log 10.0 == 2.30258509299
logBase
log 10.0 100.0 == 2.0
sin
sin is the sine function
cos
cos is the cosine function
tan
tan is the tangent function