If you look at F # in terms of what is based on OCaml, then the OCaml Num module has power_num. Since the OCaml num type is arbitrary precision rational numbers, they can handle any number of numbers, for example. they are not limited to the processor register, since they can symbolically do math. Also, since num is defined as
type num =
| Int int int | Big_int from Big_int.big_int
| Ratio Ratio.ratio
they can handle very small numbers without losing accuracy due to the Ratio type.
Since F # is not of type num, Jack created FSharp.Compatibility.OCaml , which has num.fs and is accessible through NuGet.
Thus, you can get all the necessary accuracy using this function, and num functions can handle negative indicators.
Guy coder
source share