Difference between revisions of "ParseToNumber Command"
From GeoGebra Manual
m (spacing) |
m (Text replace - "<div class="box info"> 48px|left This page is part of the official manual for print and pdf. For structural reasons normal users can't edit this page. If you found any errors on this page please contact ) |
||
Line 1: | Line 1: | ||
− | <noinclude>{{Manual Page|version=4. | + | <noinclude>{{Manual Page|version=4.2}}</noinclude> |
{{command|scripting}} | {{command|scripting}} | ||
;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''.}} | :{{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''.}} |