A
Arduino•2mo ago
TheStudier

Int not kinda working?

So i have these two integers: iint staccQuart= 214.2857143; int staccQuart= 60 / 140 / 2; maybe they should be float, but it didnt make any difference here, anyway. Only the upper one works, even though the lower one with the expression given the same number. hmm.
9 Replies
Coder_DO_As_Impossible
I didn't get what you were trying to convey And I don't know what you are trying to do. 🤨 Are you doing something unix?
TheStudier
TheStudierOP•2mo ago
nis what language is that i dont understand a work so staccQuart= 60 / 140 / 2; the 140 would be changed to another int so i can change multiple ints to the songs bpm
Coder_DO_As_Impossible
You just made me remember these unix notations which I had learnt some years ago. Basically 6 yrs ago.
TheStudier
TheStudierOP•2mo ago
oh so so its 0.214.... not 214
Coder_DO_As_Impossible
what this does is takes the string and converts it into a calculable notation then calculates it -e is for string
TheStudier
TheStudierOP•2mo ago
im good on that alien language for now i think float stack wonder why you put that
Coder_DO_As_Impossible
60 140 / means 60 divided by 140, then 2 / is total result divided by 2, then p print the result, and finally q is quit
TheStudier
TheStudierOP•2mo ago
okay thanks guys
DarwinWasWrong
DarwinWasWrong•2mo ago
One might ask why it isn't a constant

Did you find this page helpful?