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.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.