Menu

#69 Bug with exposant

v1.0_(example)
closed
nobody
None
5
2020-10-29
2017-03-19
Mike83200
No

Sorry for my poor english... I hope you understand me...
I try this little program :
For I=0 To 7
Print 2^I # 2 exposant (I)
Next I
And I get :"ERROR on line 2: Division by zero."
Version : 1.99.99.67 (2016-09-08)
I have tried too :
For I=0 To 7
Print 2%%I
Next I
And I get :"COMPILE ERROR on line 2: Syntax error around character 11."
This syntax is given by the help (Help-FR)
1 ( ) Groupement
2 %% %% Exposant
3 - Moins
...
Friendly. Mike83200.

Discussion

  • Florin Oprea

    Florin Oprea - 2017-03-19

    Hi Mike,

    First problem has already been solved. Thank you for reporting.
    The second problem is a typing mistake.
    The code should be:

    For I=0 To 7
    Print 2%I
    Next I
    

    Exposant sign is ^, not %%.
    Check the help page. Remember that English help is most complete.

    Respectfully,
    Florin Oprea

     
  • Jim Reneau

    Jim Reneau - 2020-10-29
    • status: open --> closed
     
  • Jim Reneau

    Jim Reneau - 2020-10-29

    closed to clean up

     

Log in to post a comment.