ratio
▼
Project version
v4.0.1
v4.0.0
v4.0.0-rc.1
v4.0.0-rc.0
v3.0.2
v3.0.1
v3.0.0
v2.4.2
v2.4.1
v2.4.0
v2.3.1
v2.3.0
v2.2.2
v2.2.1
v2.2.0
v2.1.1
v2.1.0
v2.0.0
v1.2.9
v1.2.8
v1.2.7
v1.2.6
v1.2.5
v1.2.4
v1.2.3
v1.2.2
v1.2.1
v1.1.1
v1.1.0
v1.0.0
v0.6.1
v0.6.0
Pages
Modules
API Reference
Modules
Guide/Readme
Using Ratio
Installation
Changelog
Difference with the 'rational' library
Ratio
Sections
Inline Math Operators and Casting
Summary
Types
t/0
Functions
%Ratio{}
abs/1
add/2
ceil/1
compare/2
denominator/1
div/2
eq?/2
equal?/2
floor/1
gt?/2
gte?/2
is_rational/1
lt?/2
lte?/2
minus/1
mult/2
new/2
numerator/1
pow/2
sign/1
sub/2
to_float/1
to_float_error/1
to_string/1
trunc/1
Ratio.DecimalConversion
Summary
Functions
decimal_to_rational/1
Ratio.FloatConversion
Summary
Functions
float_to_rational/1
Exceptions
Ratio.ComparisonError
Search documentation of ratio
Settings
View Source
Ratio.DecimalConversion
(ratio v4.0.1)
Summary
Functions
decimal_to_rational(decimal)
Functions
Link to this function
decimal_to_rational(decimal)
View Source
×