Fraction to Decimal
Convert fractions to decimals.
Parameters
| Name | Description | Accepted Values | Default | Required |
|---|---|---|---|---|
| I/O | ||||
input | Name of the input column. | string, integer, array | — | Yes |
output | Name of the output colum. | string, array, null | null | No |
| Formatting | ||||
decimals | Number of decimals to round fraction. | integer | 4 | No |
| Conditions | ||||
if | Condition that determines whether the wrangle runs as a whole. Recipe variables may be referenced with ${variable}. | string | — | No |
where | Filter rows before applying the wrangle using SQL-like criteria, such as column1 = 123 OR column2 = 'abc'. | string | — | No |
where_params | Values used with where for parameterized criteria. Uses SQLite placeholder syntax such as ? or :name. | array, object | — | No |
Examples
wrangles:
- convert.fraction_to_decimal:
input: fractions
output: decimals
decimals: 3
| fractions |
|---|
| 3/32 |
| 25/64 |
| decimals |
|---|
| 0.094 |
| 0.391 |
Access
| Requirement | Value |
|---|---|
| AI-powered | No |
| Requires WrangleWorks account | No |
| Requires subscription | No |
| Requires external API key | No |
Technical details
| Field | Value |
|---|---|
| Catalog ID | 7 |
| Catalog key | convert.fraction_to_decimal |
| Recipe key | convert.fraction_to_decimal |
| Catalog status | active |
| Lifecycle status | active |
| Recipe Writer eligible | Yes |
| Namespace | convert |
| Documentation group | convert |
| Aliases | None |
| Runtime symbol | wrangles.recipe_wrangles.convert.fraction_to_decimal |
| Legacy UUID | 7c55752e-70ab-4809-8298-c59436127457 |
Sources