Skip to content

Commit 8f04abe

Browse files
madpinklivecodeali
authored andcommitted
Update ParseStringAsNumber dictionary (livecode#6627)
Examples provided in ParseStringAsNumber were incorrect
1 parent 4410ce0 commit 8f04abe

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

libscript/src/arithmetic.lcb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -590,12 +590,13 @@ The result: <Operand> parsed as a number, or nothing.
590590
Example:
591591
variable tString as String
592592
put "5.6" into tString
593-
parse tString as Number -- the result is 5.6
593+
parse tString as number -- the result is 5.6
594594

595595
Example:
596596
variable tResult as optional String
597597
variable tNum as optional Number
598-
parse "aaaa" as Number into tNum
598+
599+
parse "aaaa" as number into tNum
599600

600601
if tNum is nothing then
601602
put "unable to parse string" into tResult

0 commit comments

Comments
 (0)