Description Usage Arguments Value Examples
The as_decimal
function parses a string and evaluates the result to
return a numeric approximation.
1 | as_decimal(fraction)
|
fraction |
The input fraction, already parsed, or a string to
be parsed using |
A numeric (possible approximation) of the fraction converted to a numeric value.
1 2 3 4 5 6 | # String as input
as_decimal("2 3/8")
# Parsed fraction as input
x <- as_improper("-1 1/3")
as_decimal(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.