package num
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=b5cce325449aac746d5ca963d84688a627cca5b38d41e636cf71c68b60495b3e
sha512=5cb32dfa9a9f0ad375bfd89079e9b1422979f3c089f61ef2300ad9cc64fb1fc25ed1f86b0267eb017f12ae41a574a959df5bfa39ab22c2be2f1ac84c3c671bdf
doc/nums/Arith_status/index.html
Module Arith_status
Flags that control rational arithmetic.
Get or set the flag null_denominator
. When on, attempting to create a rational with a null denominator raises an exception. When off, rationals with null denominators are accepted. Initially: on.
Get or set the flag normalize_ratio
. When on, rational numbers are normalized after each operation. When off, rational numbers are not normalized until printed. Initially: off.
Get or set the flag normalize_ratio_when_printing
. When on, rational numbers are normalized before being printed. When off, rational numbers are printed as is, without normalization. Initially: on.
Get or set the flag approx_printing
. When on, rational numbers are printed as a decimal approximation. When off, rational numbers are printed as a fraction. Initially: off.