Best Answer (*) , 10 August 2017 - 01:49 PM
Change it to
If Frac (2÷2)=0 Then "HI" IfEndGo to the full post
Best Answer (*) , 10 August 2017 - 01:49 PM
Change it to
If Frac (2÷2)=0 Then "HI" IfEndGo to the full post
Posted 10 August 2017 - 12: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 - 12:33 PM.
Posted 10 August 2017 - 01:49 PM Best Answer
Change it to
If Frac (2÷2)=0 Then "HI" IfEnd
Posted 10 August 2017 - 02:09 PM
Change it to
If Frac (2÷2)=0 Then "HI" IfEnd
I'm such an idiot.
Why did I not notice that!
Thanks
Posted 19 February 2022 - 08:05 AM
If Mod(2,2)=0 Then "HI" IfEnd
Edited by HappyCalc, 19 February 2022 - 08:06 AM.
Calculators →
Casio CFX/AFX/FX/Prizm →
fx-991CE X: e^i*pi=errorStarted by Ca510 , 17 Aug 2021 complex, numbers, fx-911CE X and 1 more... |
|
|
||
General →
General Discussion →
OS update error.Started by kstc05 , 25 Dec 2020 flash, os, update, error |
|
|
||
Calculators →
Casio CFX/AFX/FX/Prizm →
System ERROR on fx-9860GIIStarted by Quadro , 19 Apr 2018 error, fx-9860gii, game |
|
|
||
Calculators →
Casio CFX/AFX/FX/Prizm →
Firmware flashing failure Casio fx-9750Gii (Help!)Started by Plaidx , 07 Dec 2017 Flash, Casio, 9750GII and 6 more... |
|
|
||
Answered
Programming →
Casio Basic →
"String Output" Syntax ERRORStarted by hoobigii , 09 Aug 2017 syntax error, syntax, error and 5 more... |
|
|
0 members, 1 guests, 0 anonymous users