| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Financial Toolbox |
| Contents | Index |
| Learn more about Financial Toolbox |
OutNumber = thirtytwo2dec(InNumber, InFraction)
InNumber | Scalar or vector of input numbers without fractional component. |
InFraction | Scalar or vector of fractional portions of each element in InNumber. |
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.
Two bonds are quoted as 101-25 and 102-31. Convert these prices to decimal.
InNumber = [101; 102];
InFraction = [25; 31]
OutNumber = thirtytwo2dec(InNumber, InFraction)
OutNumber =
101.7813
102.9688
![]() | thirdwednesday | tick2ret | ![]() |
View demos and recorded presentations led by industry experts.
Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |