%% Convert Decimal to Thirty-Second Quotation
% This example shows two bonds that are quoted with decimal prices of 101.78 and 102.96. These prices are converted to fractions with a denominator of 32.

InNumber  = [101.78; 102.96];
[OutNumber, Fractions] = dec2thirtytwo(InNumber)

% Copyright 2015 The MathWorks, Inc.