Difference between revisions of "ParseToNumber Command"

From GeoGebra Manual
Jump to: navigation, search
Line 3: Line 3:
 
;ParseToNumber[ <Number a>, <String> ]
 
;ParseToNumber[ <Number a>, <String> ]
 
:Parses the string and stores the result to [[Numbers and Angles|number]] ''a''. Number ''a'' must be defined and [[Free, Dependent and Auxiliary Objects|free]] before the command is used.
 
:Parses the string and stores the result to [[Numbers and Angles|number]] ''a''. Number ''a'' must be defined and [[Free, Dependent and Auxiliary Objects|free]] before the command is used.
 +
:{{example|1=<div> Define <code><nowiki> a  = 3</nowiki></code> and <code><nowiki> text1 = "6"</nowiki></code>. </div> <code><nowiki> ParseToNumber[a, text1]</nowiki></code> returns ''a = 6''.}}

Revision as of 11:01, 14 December 2012



ParseToNumber[ <Number a>, <String> ]
Parses the string and stores the result to number a. Number a must be defined and free before the command is used.
Example:
Define a = 3 and text1 = "6".
ParseToNumber[a, text1] returns a = 6.
© 2024 International GeoGebra Institute