# oconv() function

The oconv() function converts a value
from its internal format to its external equivalent, according to
the processing code being applied.

## Syntax

```
oconv(str.exp, conv.exp)
```

## Parameter(s)

| str.exp | String to convert from its internal format to its external equivalent. |
| --- | --- |
| conv.exp | Processing code used in the conversion. |

## Example(s)

This example converts `check.amount` to external format, using the `"mr2"` conversion.

```
check.amount = 1250
print oconv(check.amount,"mr2") ;* 12.50
```
This example converts `check.date` to external
format, using the `"d"` conversion.

```
check.date = 12477
print oconv(check.date,"d") ;* 27 FEB 2002
```

## See also

- [Conversion expression](https://d3codex.com/pickbasic-flashbasic/conversion-expression/)
- [d (date) processing code](https://d3codex.com/processingcodes/d-date-processing-code/)
- [date command](https://d3codex.com/tcl/date-command/)
- [BASIC functions](https://d3codex.com/pickbasic-flashbasic/basic-functions/)
- [iconv() function](https://d3codex.com/pickbasic-flashbasic/iconv-function/)
- [m (mask) processing code](https://d3codex.com/processingcodes/m-mask-processing-code/)
- [Masking](https://d3codex.com/pickbasic-flashbasic/masking/)
- [mc (mask character) processing code](https://d3codex.com/processingcodes/mc-mask-character-processing-code/)
- [mp (mask packed decimal) processing code](https://d3codex.com/processingcodes/mp-mask-packed-decimal-processing-code/)
- [set-date-std command](https://d3codex.com/tcl/set-date-std-command/)
- [Statements and functions](https://d3codex.com/pickbasic-flashbasic/statements-and-functions/)
- [t (text extraction) processing code](https://d3codex.com/processingcodes/t-text-extraction-processing-code/)
- [t (translate) processing code](https://d3codex.com/processingcodes/t-translate-processing-code/)
- [time() function](https://d3codex.com/pickbasic-flashbasic/time-function/)
- [User exits](https://d3codex.com/definitions/user-exits/)

---
Source: https://d3codex.com/pickbasic-flashbasic/oconv-function/ - part of the D3Codex reference.
