n00b question about remainder after division
in
Programming Questions
•
1 years ago
If I calculate 10/7 the result is 1.428571429. Is there anyway I can get processing to give me just the remainder 0.428571429? I was reading about the using %(modulo) but I'm not sure this is what I need.
For example when I use the code:
void setup() {
float a = 7%10;
println(a) ;
}
The program just prints 7.
am I missing something here?
1