Hello, from a beginner :) :)
I am very new to Arduino and C programming, and trying to find my way through it. Slowly and by reading and trial and error I am learning, so please bear with me...
While I was trying to work with some floats, I noticed that a code such as
float var; var=3/4; Serial.println(var,4);
but if you do float var; var=(float) 3/4; Serial.println(var,4);
then it returns 0.7500 (as desired)
Can someone help me understand why is this, and is this (casting) the correct way to use floats?