How-to guides¶
Recipes for specific tasks, assuming you know the basics (see the tutorials otherwise).
- Add Kt-Math as a dependency: Gradle (multiplatform, Native, JVM), Maven, npm.
- Parse and convert numbers: from strings and Kotlin numbers, among the three types.
- Control precision and rounding:
MathContext,RoundingMode, scales. - Use big-math: logarithms, roots, powers, trigonometric functions, constants.
- Call Kt-Math from C: the conventions of the C API, and building the shared library.
- Contribute: build, test and document Kt-Math itself.