ParseToNumber Command

From GeoGebra Manual
Revision as of 10:37, 10 August 2015 by Zbynek (talk | contribs)
Jump to: navigation, search


ParseToNumber[ <Number>, <String> ]
Parses the string and stores the result to a number a, which must be defined and free before the command is used. This is a scripting command which only sets the value of a number once. To convert a text text1 into a number which is updated dynamically, use FromBase[text1,10].
Example: Define a = 3 and text1 = "6". ParseToNumber[a, text1] returns a = 6.
Note: See also ParseToFunction command.
© 2024 International GeoGebra Institute