Skip to main content

Fraction to Decimal

Convert fractions to decimals.

Parameters​

NameDescriptionAccepted ValuesDefaultRequired
I/O
inputName of the input column.string, integer, array—Yes
outputName of the output colum.string, array, nullnullNo
Formatting
decimalsNumber of decimals to round fraction.integer4No
Conditions
ifCondition that determines whether the wrangle runs as a whole. Recipe variables may be referenced with ${variable}.string—No
whereFilter rows before applying the wrangle using SQL-like criteria, such as column1 = 123 OR column2 = 'abc'.string—No
where_paramsValues 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
RequirementValue
AI-poweredNo
Requires WrangleWorks accountNo
Requires subscriptionNo
Requires external API keyNo
Technical details
FieldValue
Catalog ID7
Catalog keyconvert.fraction_to_decimal
Recipe keyconvert.fraction_to_decimal
Catalog statusactive
Lifecycle statusactive
Recipe Writer eligibleYes
Namespaceconvert
Documentation groupconvert
AliasesNone
Runtime symbolwrangles.recipe_wrangles.convert.fraction_to_decimal
Legacy UUID7c55752e-70ab-4809-8298-c59436127457

Sources