Convert Text to Number
Security:
Custom Field Management
domain in the System functional area.You can set up the calculated field to convert a text field number to a numeric value so you can perform calculations on that number. Example: You can convert a text field with a value of
200 expense lines
to the number 200
.- Access theCreate Calculated Fieldtask.
- SelectConvert Text To Numberfor theFunction.
- As you complete theCalculationtab, consider:
Option Description Text FieldYou can select either a single instance or a text field to convert to a number. If you select a single instance field, Workday uses the display ID value of the field.Decimal SeparatorSelect the symbol that indicates a separation between the whole number and the fraction, such as a comma or a period.Example: When you selectBased on user’s localeand theText Fieldis123.4, where the period is the decimal separator, Workday computes the value as1234for regions that use commas as decimal separators.Return Zero on ErrorSelect the check box to return a zero value instead of displaying an error if the calculated field returns non-numerical data.If you use a Prism business object with this calculated field, Workday always returns a zero on error. - (Optional) In theAdvancedsection on theAdditional Infotab, select theDo not use Alternate Display IDcheck box from theOptionsprompt.Instead of using the alternate display ID, Workday uses the display ID from the text source to convert the text to a number.
You can use the convert text to number calculated field to convert these texts into numeric values to perform arithmetic calculations on:
- A worker's length of service in years.
- The 200 rows in an expense report.
Create:
- Additional calculated fields.
- New calculated fields from within a convert text to number calculated field.