File: libnum.html

package info (click to toggle)
ocaml-doc 4.11-2
  • links: PTS, VCS
  • area: non-free
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 20,580 kB
  • sloc: sh: 37; makefile: 11
file content (33 lines) | stat: -rw-r--r-- 1,799 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html>
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="generator" content="hevea 2.32">

  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<link rel="stylesheet" type="text/css" href="manual.css">
<title>Chapter 29  The num library: arbitrary-precision rational arithmetic</title>
</head>
<body>
<a href="libunix.html"><img src="previous_motif.svg" alt="Previous"></a>
<a href="index.html"><img src="contents_motif.svg" alt="Up"></a>
<a href="libstr.html"><img src="next_motif.svg" alt="Next"></a>
<hr>
<h1 class="chapter" id="sec582">Chapter 29  The num library: arbitrary-precision rational arithmetic</h1>
<p>The <span class="c003">num</span> library implements integer arithmetic and rational
arithmetic in arbitrary precision. It was split off the core
OCaml distribution starting with the 4.06.0 release, and can now be found
at <a href="https://github.com/ocaml/num"><span class="c003">https://github.com/ocaml/num</span></a>.</p><p>New applications that need arbitrary-precision arithmetic should use the
<span class="c003">Zarith</span> library (<a href="https://github.com/ocaml/Zarith"><span class="c003">https://github.com/ocaml/Zarith</span></a>) instead of the <span class="c003">Num</span>
library, and older applications that already use <span class="c003">Num</span> are encouraged to
switch to <span class="c003">Zarith</span>. <span class="c003">Zarith</span> delivers much better performance than <span class="c003">Num</span>
and has a nicer API.

</p>
<hr>
<a href="libunix.html"><img src="previous_motif.svg" alt="Previous"></a>
<a href="index.html"><img src="contents_motif.svg" alt="Up"></a>
<a href="libstr.html"><img src="next_motif.svg" alt="Next"></a>
</body>
</html>