Main Content
toquoted
Decimal to fractional conversion
Description
returns the fractional equivalent, quote
= toquoted(usddec
,fracpart
)quote
, of
the decimal figure, usddec
, based on the
fractional base (denominator), fracpart
. The
fractional bases are the ones used for quoting equity prices in the
United States (denominator 2, 4, 8, 16, or 32). If
fracpart
is not entered, the
denominator 32 is assumed.
Examples
Input Arguments
Output Arguments
Version History
Introduced before R2006a