usddec = todecimal(quote)
returns the decimal equivalent, usddec, of a security whose price
is normally quoted as a whole number and a fraction (quote).
usddec = todecimal(___,fracpart)
returns the decimal equivalent, usddec, of a security whose price
is normally quoted as a whole number and a fraction (quote).
fracpart indicates the fractional base (denominator) with which
the security is normally quoted (default = 32).
Often secuirty prices are quoted in fractional form based on a denominator of 32. For example, if you see the quoted price is 100:05 it means 100 5/32. To find the equivalent decimal value, enter:
usddec = todecimal(100.05)
usddec =
100.1562
You can change the defualt denominator of 32 by using the fracpart optional argument with a value of 16.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.