GNU-Darwin Web

# Module Arith_status

`module Arith_status: `sig  end``
Flags that control rational arithmetic.

`val arith_status : `unit -> unit``
Print the current status of the arithmetic flags.
`val get_error_when_null_denominator : `unit -> bool``
`val set_error_when_null_denominator : `bool -> unit``
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.
`val get_normalize_ratio : `unit -> bool``
`val set_normalize_ratio : `bool -> unit``
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.
`val get_normalize_ratio_when_printing : `unit -> bool``
`val set_normalize_ratio_when_printing : `bool -> unit``
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.
`val get_approx_printing : `unit -> bool``
`val set_approx_printing : `bool -> unit``
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.
`val get_floating_precision : `unit -> int``
`val set_floating_precision : `int -> unit``
Get or set the parameter `floating_precision`. This parameter is the number of digits displayed when `approx_printing` is on. Initially: 12.
{"ft_lang_label":"__label__en","ft_lang_prob":0.6389722,"math_prob":0.95189106,"size":1352,"snap":"2022-40-2023-06","text_gpt3_token_len":285,"char_repetition_ratio":0.15801187,"word_repetition_ratio":0.13483146,"special_character_ratio":0.20044379,"punctuation_ratio":0.2175926,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.97047275,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-09-30T13:06:05Z\",\"WARC-Record-ID\":\"<urn:uuid:d01be62f-46f4-43db-a5b0-a3e290a5c44d>\",\"Content-Length\":\"11249\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:0a3e67b5-c40f-4bfe-bdb3-be95335a232c>\",\"WARC-Concurrent-To\":\"<urn:uuid:85da94b7-3807-45bc-b453-781554c8c615>\",\"WARC-IP-Address\":\"73.39.130.200\",\"WARC-Target-URI\":\"http://doc.gnu-darwin.org/libref/Arith_status.html\",\"WARC-Payload-Digest\":\"sha1:6L5FDAVBCGY3PUPZT7QKTS53TM4ZZWFO\",\"WARC-Block-Digest\":\"sha1:AXXLNJ7EBACJHW3H3NLX4GIURHCDEXOE\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-40/CC-MAIN-2022-40_segments_1664030335469.40_warc_CC-MAIN-20220930113830-20220930143830-00287.warc.gz\"}"}