Accelerating the pace of engineering and science

# thirtytwo2dec

Thirty-second quotation to decimal

## Syntax

```OutNumber =  thirtytwo2dec(InNumber, InFraction)
```

## Arguments

 InNumber Scalar or vector of input numbers without fractional component. InFraction Scalar or vector of fractional portions of each element in InNumber.

## Description

OutNumber = thirtytwo2dec(InNumber, InFraction) changes the price quotation for a bond or bond future from a fraction with a denominator of 32 to a decimal.

OutNumber represents the sum of InNumber and InFraction expressed as a decimal.

## Examples

expand all

### Change the Price Quotation for a Bond or Bond Future From a Fraction

This example shows how to change the price quotation for a bond or bond future from a fraction with a denominator of 32 to a decimal, given two bonds that are quoted as 101-25 and 102-31.

```InNumber  = [101; 102];
InFraction = [25; 31];

OutNumber = thirtytwo2dec(InNumber, InFraction)
```
```OutNumber =

101.7812
102.9688

```