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.
Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.