%% 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)

% Copyright 2015 The MathWorks, Inc.