Rational data type

Some programming languages provide a built-in (primitive) rational data type to represent rational numbers like 1/3 and −11/17 without rounding, and to do arithmetic on them. Examples are the ratio type of Common Lisp, and analogous types provided by most languages for algebraic computation, such as Mathematica and Maple.

Source: Wikipedia — Rational data type (CC BY-SA 4.0)

Rational data type

Some programming languages provide a built-in (primitive) rational data type to represent rational numbers like 1/3 and −11/17 without rounding, and to do arithmetic on them. Examples are the ratio type of Common Lisp, and analogous types provided by most languages for algebraic computation, such as Mathematica and Maple.

This neuron ends here.

Source: Wikipedia "Rational data type" · CC BY-SA 4.0

Share this article: X · Bluesky
Privacy Policy