Jump to content



Photo
- - - - -

Mod in Casio Basic

modulus mod syntax error syntax error

Best Answer Emex , 10 August 2017 - 02:49 PM

Change it to

If Frac (2÷2)=0
Then
"HI"
IfEnd
Go to the full post


  • Please log in to reply
2 replies to this topic

#1 hoobigii

hoobigii

    Newbie

  • Members
  • Pip
  • 5 posts

  • Calculators:
    CASIO fx-9860GII SD

Posted 10 August 2017 - 01:21 PM

Is there a mod operator in Casio Basic?

 

I tried using "Frac (x÷y)", but that doesn't work with an "if" statement.

 

When I do this, I get a syntax error after the "0"

If Frac (2÷2)=0
"HI"
IfEnd

I tried it with a "while" loop and that worked. Is there another one to be used in an "if" statement?

 

EDIT: Also tried the "Mod (2÷2)=0", but I get a memory error that way.


Edited by hoobigii, 10 August 2017 - 01:33 PM.


#2 Emex

Emex

    Casio Fan

  • Members
  • PipPip
  • 33 posts
  • Gender:Not Telling
  • Location:.#[Location]
  • Interests:.#[Interests]

  • Calculators:
    .#[Calculators]

Posted 10 August 2017 - 02:49 PM   Best Answer

Change it to

If Frac (2÷2)=0
Then
"HI"
IfEnd


#3 hoobigii

hoobigii

    Newbie

  • Members
  • Pip
  • 5 posts

  • Calculators:
    CASIO fx-9860GII SD

Posted 10 August 2017 - 03:09 PM

 

Change it to

If Frac (2÷2)=0
Then
"HI"
IfEnd

I'm such an idiot.  :banghead:

Why did I not notice that!

Thanks







Also tagged with one or more of these keywords: modulus, mod, syntax error, syntax, error

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users