Fraction
.
prototype
.
abs
Returns the absolute value of the fraction.
Syntax
abs
(
)
Return value
A fraction.
Examples
Fraction
(
-
1
,
2
)
.
abs
(
)
$\frac{1}{2}$